-
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
tooltip on stacked bar chart #1087
Comments
The reason that happens is that the separate stacks all use the same key and get the title from the chart group and not the stacks. You can probably fix it using a renderlet that selects each stack and creates the titles accordingly for each stack. |
You can use |
I'm fixing the example by using In a way this is an instance of the inconsistency in #703 - in a lot of cases it's more useful to have the "outer datum" rather than just the data from the group. I believe this is why some charts supply one and some supply the other. I consider this problem a vote for the outer datum. |
fixes #1087, at least for now "outer datum" is probably the proper solution here
Congratulations on such great software!
There seems to be a bug on the stacked bar chart tooltip.
Note the basic example on the dc.js page.
http://dc-js.github.io/dc.js/examples/stacked-bar.html
The selection of a bar on each stack always shows the value for the first group.
I could not find a workaround, as I do not know how to identify on the tooltip function which stack is being highlighted/selected.
For now, I forced the tooltip function to show all values. But this is still not ideal, as only one stack is selected.
-Andre
The text was updated successfully, but these errors were encountered: