Replies: 1 comment
-
As stated in the migration guide (https://www.chartjs.org/docs/master/getting-started/v3-migration.html) and namespace field of the legend section (https://www.chartjs.org/docs/master/configuration/legend.html). You have to configure the legend config in the plugins part like so: options:{
plugins:{
legend:{
// Legend config
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behavior
Should be able to hide legend using "display: false"
Current Behavior
Does not hide legend
Steps to Reproduce
display: false,
}}
Context
I am not able to remove this. Read documentation from beginning to end and tried everything I found online. And if I don't include a label, it just shows undefined instead of removing it with the box.
Environment
"chart.js": "3.4.1",
"react-chartjs-2": "3.0.4",
Chrome (Latest)
Beta Was this translation helpful? Give feedback.
All reactions