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

Different color bars in stacked bar #21

Closed
peterbe opened this issue Nov 22, 2019 · 3 comments · Fixed by #33
Closed

Different color bars in stacked bar #21

peterbe opened this issue Nov 22, 2019 · 3 comments · Fixed by #33

Comments

@peterbe
Copy link

peterbe commented Nov 22, 2019

I messed with the example and changed the data on the 'March' row. I replaced B with D. (Perhaps March doesn't have a B)
Nothing happened.
I was expecting the March column (right-most) to have a different color for the D value.

data: [
      {month:'Jan', A:20, B: 5,  C: 10},
      {month:'Feb', A:25, B: 10, C: 20},
      {month:'March', A:30, D:50, C:10}
  ],
@peterbe
Copy link
Author

peterbe commented Nov 22, 2019

Before changing March's keys:
Screen Shot 2019-11-22 at 5 07 39 PM

After removing the B:50 and replacing it with D:50:
Screen Shot 2019-11-22 at 5 08 13 PM

@jolo-dev
Copy link

@peterbe A valid point.
Do you think in that case it shouldn't be considered at all or should be but marked with a different color because it is a different key?

@peterbe
Copy link
Author

peterbe commented Nov 25, 2019

@peterbe A valid point.
Do you think in that case it shouldn't be considered at all or should be but marked with a different color because it is a different key?

Different color.
How else should I visualize this?

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

Successfully merging a pull request may close this issue.

2 participants