-
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
TreeMap support #129
Comments
TreeMap is a good way to visualize hierarchical data however crossfilter currently does not support hierarchical data (drill down/drill up). I am doing some related hierarchical data visualization in some other project and hopefully will be able to incorporate some ideas into dc.js eventually. As of now I don’t think it is possible with crossfilter. Will keep this in the backlog as a future feature request, cheers. |
Nick, Treemap uses are not limited to hierarchical data, especially the Marimekko / Mosaic variant is highly useful to assess interdependencies in data comprising several categorical dimensions. I like to think of it as the 2D+ variant of (normalised) stacked bars, and it's apparently well-implemented in D3 v3 ( For some additional background check the following slide decks: Cheers |
Agree, though not sure I have enough bandwidth to tackle this anytime soon (just had a new baby this week :) Will slot it in v1.5 for now. |
Congrats on the baby, and good luck! :-) I only hope it won't make you lose interest in this other baby of yours entirely! ;-) |
I implemented one for my report, here is how I added the treemap to dc:
|
That's excellent! Any change to post this as a pull request for core? |
pierco's example causes a call stack size limit error. Needs more work to incorporate the .margins method other box charts have in DC. |
Could you give me an example of this method implementation or point me to the right direction ? Thanks |
There is a margins mixin for DC.js that takes top left right bottom. Also, Margins mixin BTW The margins is a suggestion to help place the chart and the call stack error was due to data input. I figured that out, but would like to see how you did the crossfilter dimensions and group to get this chart to display. I was using a demension from a pie chart with 5-6 groups with .group().reduceCount() as the group object, and the chart was displaying but caused a call stack exceeded error. On Thursday, March 20, 2014, pierco notifications@github.com wrote:
|
I was wondering if any further work had been done on this? |
Hi,
|
I tried both versions of dc.treemapChart and I got this error:
Any ideas? |
@KatiRG, I haven't tried the code myself, but I don't understand that error since |
ok that's weird! I'm trying the sunburst now, as you suggested. I'll let you know what happens, thanks! |
Since no one has submitted a PR, I think the best thing you can do is try this code out on your own @oakley808 and let us know how it works. Then if you feel ambitious and neighborly, submit a PR yourself! You should be able to just add this code in another script loaded after dc, as long as module gunk doesn't get in the way. dc is very extensible. |
@jannah |
Nick,
Can we add TreeMap support as single (multiple when supported) selection chart? This can be really useful in some cases. And I assume this will not be too hard to achieve, but I might be wrong.
Thanks a lot!
Javy
The text was updated successfully, but these errors were encountered: