-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sunburst value accessor issue #1444
Sunburst value accessor issue #1444
Conversation
I have cleaned up the example. @gordonwoodhull, the current example uses Reductio, which may be good. However it is possible to demonstrate the concept using multiple group sums similar to Stocks example. Will wait for your advice. If we continue with Reductio, currently reductio is loaded directly from CDN, it might be better to use npm to install and Grunt to copy it to our js folder, like other similar cases. Again, will wait for your advice. |
Tricky... I forgot that sunburst was also capped, so now we have a double-wrapped accessor. I don't see why it shouldn't work though. I think if the example used a I think it's nice to have an example that uses reductio, especially since reductio can help a lot with complicated reductions like this. I agree we should add it as a |
I'd prefer if the data had a descriptive filename. @mukherjeea, are you okay with us using this data in an example, and if so, what does it mean? |
@gordonwoodhull the data I've used in the fiddle is from production. I will need to mask couple of attributes before it can be used as an example. Give me some time. I will update you guys. |
@gordonwoodhull, thanks for your responses, it all makes sense. It does intuitively sound to me that keyAccessor would have same issue, however, I am unable to come up with an example. So, while I can make the change, do not want to do it without producing the problem first 😄. There is one more fundamental thing I have breaking my head on. Does using Capping actually help (or even work for) Sunburst charts. I guess it is there because the original code was picked from Pie chart. Sunburst charts create a hierarchy. If someone uses Capping - the hierarchy will be incorrect (as may nodes would get collapsed into 'Others' bucket before the computation). I am unable to think about correct behavior of Capping in this context. At this stage none of the examples use Capping. What is your opinion - should we drop Capping from Sunburst? |
@mukherjeea, any luck producing a data set we could use for the test? Unfortunately we are testing based on the example you gave in #1440, so I can't currently merge this fix without merging that data. |
@gordonwoodhull wasn't able to revisit this. This fiddle has a usable dataset. I've also updated the code that follows. sorry about the delay. |
the dataset for completeness. |
Thanks @kum-deepak, @mukherjeea! I merged the new data into the example and squashed, so the unmasked data is gone from the main branch (it will disappear entirely once @kum-deepak deletes this branch). Thanks for providing clear field names on the new dataset - with that info I was able to call the dataset We can fix the Merged for 3.0.6 |
Deleted my branch. Thanks! |
Attempt to fix #1440.