Skip to content
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

When there are multiple treemaps, the color scale gets messed up #477

Closed
nandininagaraj24 opened this issue May 9, 2016 · 2 comments
Closed
Assignees

Comments

@nandininagaraj24
Copy link

There is a simple treemap and a grouped treemap in this jsfiddle and when I drill down the grouped treemap, the color scale below the graph or both treemaps change.

http://jsfiddle.net/Evw3x/17/

In my actual application, I have multiple treemaps, Is there a way of preventing all the color scales from varying all the time?

@nandininagaraj24
Copy link
Author

nandininagaraj24 commented May 10, 2016

I changed
var heatmap = scale.selectAll("#d3plus_legend_heatmap")
to
var heatmap = scale.select("#d3plus_legend_heatmap")
which solved this issue of multiple treemaps being updated

@davelandry
Copy link
Member

@nandininagaraj24 thanks for finding this! Turns out it was a problem with conflicting IDs. I've not made each heatmap use a distinct ID, and they no longer overwrite eachother.

Will be available in the next release.

@davelandry davelandry self-assigned this May 23, 2016
@davelandry davelandry added the Bug label May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants