Toggle chart values


Topic: Toggle chart values

itay pro asked 4 months ago

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 ?


Konrad Stępień staff commented 3 months ago

Hi @itay,

You can make two options value and toggle this.


itay pro commented 3 months ago

What should be in the options without the values ?


Konrad Stępień staff commented 3 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.


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • 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
Tags