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

pointStyle not Working on Legend #692

Closed
Hndry opened this issue Jun 14, 2021 · 1 comment
Closed

pointStyle not Working on Legend #692

Hndry opened this issue Jun 14, 2021 · 1 comment
Labels

Comments

@Hndry
Copy link

Hndry commented Jun 14, 2021

I read the documentation and i get that you need to apply usePointStyle to use pointStyle on legend.
I did, but it's not even working

<Pie data={data} options={{ plugins: { legend: { display: true, position: "bottom", labels: { pointStyle: "rect", usePointStyle: true } } } }} />

Like, am i missing something? or is this a bug?
Really need help, thanks in advance

@lucapollani
Copy link

This was a bug of chart.js specific for pie, doughnut charts not considering that option.
Issue reference: chartjs/Chart.js#9337

It has been fixed in chart.js version 3.4.1 chartjs/Chart.js#9341

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

3 participants