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

Colors for stacked bar chart on multi-series line/bar chart aren't working properly #3320

Closed
lizbanach opened this issue Sep 16, 2016 · 2 comments

Comments

@lizbanach
Copy link

Hi Charts.js team,

I am trying to implement different colors for each dataset in a multi-series stacked bar chart/line chart I am creating. However, it does not seem that the colors are working properly for my stacked bar chart.

Here is a screenshot of this issue:
stacked-bar-chart-issue

As you can see, the colors I have defined are only being pulled through for the first bar, and the other bars are still grey. How can I fix this?

Here is a JS Bin of my chart: https://jsbin.com/cunido/edit?html,js,output

Thank you for your help.

@lizbanach
Copy link
Author

I was able to fix this: https://jsbin.com/sijowuruda/2/edit?html,js,output

However, it seems like there is still an outstanding issue with my chart. I am unable to get hover tooltips for the line graph, only the bar chart. Why is this?

@etimberg
Copy link
Member

Closing since the color issue was resolved. The hover issue is #1955

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