-
Wei-Ming ChenJune 8, 2016 at 8:19 am #6188
I am trying to find the function which to sort the outer Arc based on total value and would like to stop sorting. Would you mind if you could tell me where to find the sorting function.
Thanks!
Wei-Ming
vizulyJune 8, 2016 at 8:28 am #6189Hello Wei-Ming,
Thanks for posting your question in the Support Forum.
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/wiki/Pie-Layout
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; });// Set our halo slice layout properties
haloSliceLayout.value(scope.value).padAngle(0);`– Tom
-
|
You must be logged in to reply to this topic.