-
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 #907
Sunburst #907
Conversation
Examples are great, but we will need Jasmine tests as well. Please see if you can exercise the functionality with some tests similar to https://github.com/dc-js/dc.js/blob/develop/spec/pie-chart-spec.js |
I thought I did have tests o.O. I remember writing them, I'll go have a On Wed, Apr 8, 2015 at 9:12 PM, Gordon Woodhull notifications@github.com
|
ah, I do have tests, but forgot to commit them :( - me and git have a How do you want me to add them? commit it and build another pull request On Wed, Apr 8, 2015 at 9:16 PM, Blair Nilsson blair.nilsson@gmail.com
|
ah... my tests fail LINT something awful, I'll work on getting them working On Wed, Apr 8, 2015 at 9:19 PM, Blair Nilsson blair.nilsson@gmail.com
|
Yes, adding them to the same branch and pushing them is the right approach. A PR is always a work in progress. Lmk if you get stuck and I'll help troubleshoot. The tests are often pretty challenging. |
I was able to get the sunburst chart working using the code here https://github.com/blairn/dc.js/tree/sunburst, but the weird this is that it turns all my rowChart bars dark grey. Anyone else find this? |
for now we have just hard-coded it in the css:
|
@csymill26 asked in #1069 and #781:
|
@csymill26, would you expect the sunburst also to "filter in" to the zoomed part, or is it just a view thing. Also what would be the interface, something like single click to filter, double click to zoom? |
Zooming in would be a visual thing as well as a filter thing. It doesn't matter to me if it's a single or double click to zoom. |
Couple questions: Is the inner radius value working yet? Will you add zooming? If it/they are not working yet, when will these become available? Thank you! |
Unfortunately I think @blairn is quite busy, since he hasn't gotten back to this PR for a while. I'd be willing to write the tests if someone else wants to implement these features. @csymill26, probably your best bet if you need this stuff immediately is to start from Blair's source and make the changes yourself. Then please file another PR with your updates! |
Oops, I missed the tests being added. That's awesome. I guess it is on me to get them running properly. |
Hi regarding innerRadius, i noticed that in dc.js line 4548 here inner and outerradius are set as functions of d.y and d.dy. I replaced them with .innerRadius(_innerRadius) and it works. take care when changing though since it will make your graph look odd. |
Merged via #1388 for 3.0.0 |
I am not good at git, but... I think this is right.
It works, tests, lints. I'll do more clean up in the next few days, along with more charts being pull requested.
Enjoy!