I am recently into using plotly package for a gauge chart in python.
After going through the tutorial and template here, I wonder if there is a way to
In my case, the solution provided by @jvrsgsty needed a bit modification to work. That's how I finally fixed it:
h = 0.24
k = 0.5
r = 0.15
# Map my_raw_value to degrees. my_raw_value is between 0 and 300
theta = (100 - my_raw_value) * 180 / 100
# and then into radians
theta = theta * math.pi / 180
x = h + r*math.cos(theta)
y = k + r*math.sin(theta)
path = 'M 0.235 0.5 L ' + str(x) + ' ' + str(y) + ' L 0.245 0.5 Z'