We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to be able to apply data color (bar color) to tooltip label:
tooltips: { callbacks: { textLabelColor: (tooltipItem, chartInstance) => { return chartInstance.data.datasets[tooltipItem.datasetIndex].backgroundColor; } } }
There is a callback called labelColor that can be used to set the color of the box that appears right before the label but not the text.
The text was updated successfully, but these errors were encountered:
Happy to look at a PR for this.
Sorry, something went wrong.
issue chartjs#4191
8141200
Add tooltip textLabelColor callback (#4199)
394382b
Add a new tooltip callback `labelTextColor` that returns the colour for each item in the body of the tooltip. Fixes issue #4191
Add tooltip textLabelColor callback (chartjs#4199)
d43a048
Add a new tooltip callback `labelTextColor` that returns the colour for each item in the body of the tooltip. Fixes issue chartjs#4191
No branches or pull requests
Expected Behavior
I want to be able to apply data color (bar color) to tooltip label:
Current Behavior
There is a callback called labelColor that can be used to set the color of the box that appears right before the label but not the text.
The text was updated successfully, but these errors were encountered: