Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Toggle chart values

itay pro asked 4 years 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 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.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: 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