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 ?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 9.3.1
- Device: NA
- Browser: NA
- OS: NA
- Provided sample code: No
- Provided link: Yes
Tags
Related topics
Konrad Stępień staff commented 4 years ago
Hi @itay,
You can make two options value and toggle this.
itay pro commented 4 years ago
What should be in the
options
without the values ?Konrad Stępień staff commented 4 years 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.