You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the data label's color is black and it can be changed to any fixed color.
Chartjs doesn't haveb a property though, to match the color of the dataset line/bar.
Possible Implementation
There are a few suggestions on the internet that currently work as workarounds only for bar. It should be possible either to match the data set colors for the datalabels, or to have access to the data[dataIndex]'s color.
The text was updated successfully, but these errors were encountered:
bogdanblunt
changed the title
Add property to match the Datalabels color with line/bar color
Add boolean property to match the Datalabels color with line/bar color
Dec 7, 2023
bogdanblunt
changed the title
Add boolean property to match the Datalabels color with line/bar color
Add boolean property to match the Datalabels color with the corresponding line/bar color
Dec 7, 2023
The datalabels is a sepperate plugin so we can't put a boolean in the core for that. You will need to open an issue in the datalabels plugin repository with this request:
Feature Proposal
Currently, the data label's color is black and it can be changed to any fixed color.
Chartjs doesn't haveb a property though, to match the color of the dataset line/bar.
Possible Implementation
There are a few suggestions on the internet that currently work as workarounds only for bar. It should be possible either to match the data set colors for the datalabels, or to have access to the data[dataIndex]'s color.
The text was updated successfully, but these errors were encountered: