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
Legend labels pointStyle for pie partially not working? #9351
Comments
It seems the cross is getting it styling from the https://codesandbox.io/s/upbeat-smoke-f1221?file=/index.html |
To work around the borders in the chart problem, one could override the const labelOpts = {
generateLabels: (chart) => {
const items = Chart.overrides.pie.plugins.legend.labels.generateLabels(chart);
for (const item of items) {
item.strokeStyle = item.fillStyle;
item.lineWidth = 1;
}
return items;
}
} |
Thanks for the tips 👍🏻 , so as far as I've understood those point styles are actually being drawn but they have a size / color which doesn't make them show, correct? |
That's correct |
Perfect, thank you, closing the issue then. |
Expected Behavior
I should be able to define all the point styles defined here https://www.chartjs.org/docs/latest/configuration/elements.html#point-styles
Current Behavior
cross, crossRot, dash, line, star
point styles are not working. Nothing is displayed. Am I doing something wrong?circle, rect, rectRounded, rectRot, triangle
point styles are working correctly instead.Steps to Reproduce
https://codesandbox.io/s/red-lake-16cx6?file=/index.html
Context
Related to #9337 / #9341
Environment
The text was updated successfully, but these errors were encountered: