Simple gauge corner radius

I asked ChatGPT how to do it.

Is this accurate?

I am making the simple gauges like this except the background color matches the color behind or visibility is reduced via opacity, so the square ends are not visible.