-
vizulyJune 28, 2016 at 6:35 am #6260
Hello Fredrik,
To change the default sort order you will want to modify the sort operator on the haloLayout and/or the haloSliceLayout. These are both d3.layout.pie objects and here is a link on how to modify the sorts
https://github.com/d3/d3-3.x-api-reference/blob/master/Pie-Layout.md
The code in vizuly can be found at lines 151 and 157 in “src/viz/halo.js” function measure();
` // Set our halo layout properties
haloLayout.padAngle(scope.padAngle*radian)
.startAngle(0)
.endAngle(360*radian)
.value(function (d) { return d.value; });You will want to modify the above code with your own sort order with the .sort() method described in the link above.
– Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io