I'm following this example in order to understand how the solidgauge chart works:
plotOptions: {
solidgauge: {
borderWidth: '34px',
dataLabels: {
enabled: false
},
linecap: 'round',
stickyTracking: false
}
},
In this example, a 34px borderWidth works fine. But if I change the size of the chart or change the outerRadius or innerRadius for the backgrounds in the pane object the 34px borderWidth does not match the background anymore (as expected).
I tried to figure out a formula for the borderWidth that includes the size of the chart, whether I have a legend or not (the legend consumes size) and the inner and outer Radius of the background, unfortunatelly with no success :( Although I'm almost there, most of the times I miss the right value for 1, 2 or 3 pixels, so I must be forgoting something.
The big problem, as I see, is that I must transform sizes expressed in percentages for the background in pixels for the borderWidth.
Does anybody have any suggestions? Thanks in advance.