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

[Bug]: Background color for chart is not working #1201

Open
1 task
altimetrik-dtavandikar opened this issue Oct 25, 2023 · 0 comments
Open
1 task

[Bug]: Background color for chart is not working #1201

altimetrik-dtavandikar opened this issue Oct 25, 2023 · 0 comments
Labels

Comments

@altimetrik-dtavandikar
Copy link

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

I want to set background color to specific chart portion based on event in graph data.
When there is error I want to display red background, when there is warning I want to display yellow background.

But static background also not working.

I have tried beforeDatasetsDraw method from plugin to render background but its not working, I have added console in the same method but nothing in console as well, looks like method is not invoking.

I have tried beforeDatasetsDraw method inside filler as well, there also not working.

Reproduction

https://github.com/altimetrik-dtavandikar/chartjs.git

chart.js version

4.4.0

react-chartjs-2 version

5.2.0

Possible solution

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant