Where I'm running into trouble, is that the series seems to be automatically sorted, such that my [20,60,20] is rendered as though it were [20,20,60]. Furthermore, the technique I'm using to turn the circle into an arc is to add an additional segment and explode it from the series. It works nicely from a visual perspective, but also is impacted by that automatic sorting. So, in actuality, it's sorting [20,60,20,50] as [20,20,50,60], moving the exploded piece into the 3rd position. If the ratios vary to, say [30,40,30,50], then it will sort it as [30,30,40,50], moving the exploded piece to the 4th position, requiring a different rotation.
Is there a way to prevent the automatic sorting of the series?
Here's the basic working part of the code.
Code: Select all
var Chart1;
function draw() {
Chart1=new Tee.Chart("canvas");
Chart1.addSeries(new Tee.Donut([20,60,20,50]));
Chart1.series.items[0].rotation=245;
Chart1.series.items[0].explode=[0,0,0,1000];
Chart1.series.items[0].marks.visible=false;
Chart1.title.text="";
Chart1.legend.visible=false;
Chart1.draw();
}