Topic: Toggle chart values
According to this link: https://mdbootstrap.com/docs/angular/advanced/charts/#display-values
I manage to add values to a chart. Now, I want to toggle them on/off
What should I add to the options.plugins.datalabels to toggle the values ?
Answered
- User: Pro
- Premium support: No
- Technology: Angular
- MDB Version: 9.3.1
- Device: NA
- Browser: NA
- OS: NA
- Provided sample code: No
- Provided link: Yes
Konrad Stępień staff commented 10 months ago
Hi @itay,
You can make two options value and toggle this.
itay pro commented 10 months ago
What should be in the
optionswithout the values ?Konrad Stępień staff commented 10 months ago
If you add value to the chart, you can make a copy of this element and then replace the value in the component.
Of course, if I understood correctly. It would be good if you could explain your problem to me and add code to it.