I've been trying to make ranges work on some circular gauges. I've been puzzled by the fact that the ranges do not always draw from StartValue to EndValue.
After a bunsh of poking at test cases, I figured out that what the ranges are actually doing is:
(undocumented? as far as I cal tell?) The ranges appear to always draw FROM min(StartValue, EndValue) TO max(StartValue, EndValue).
That is hardly the mod 360 behavior I expected from a circular gauge.
It can get very confusing as it causes visual complements of the ranges to be drawn on the screen.
OK, now that I thought I knew what it was doing, I compensated and now draw all ranges with two ranges - I handle the StartValue > EndValue case by splitting into StartValue -> 360 and then a 2nd range from 0-> EndValue.
I can't help but think this should not be necessary - Since Range is a membrer of a TickSet and a TickSet is a member of a Scale, and Scales have direction (ex: IsReversed) - it seems that a range should simply draw from StartValue TO EndValue in the positive direction of the scale.
Is the current behavior a bug or is there some reason that escapes me for this "feature"?
Finally, when using two ranges as a work around, I can't get rid of what looks like a 1 pixel line at angle 0 on the gauges - this causes the two ranges to not blend together visually into a single range.... (I have range border set to none).
Do you kow some way I can I fix that visual artifact?