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: can you not show lables in doghnut pie chart?

Manamapps free asked 3 years ago


Expected behavior Hide labels. how data only on the doughnut pie chart Actual behavior must show lables other wise data is undefined Resources (screeenter image description herenshots, code snippets etc.)


Krzysztof Wilk staff answered 3 years ago


Oh, I see. Anyway - you can add this property to your component - options={{ responsive: true, legend: { display: false } }} - to remove the legend :)

Keep coding!


Manamapps free answered 3 years ago


please reply. need answer quickley


Manamapps free answered 3 years ago


but then when you hover over it it shows "undefined"


Krzysztof Wilk staff answered 3 years ago


Hi!

You can just remove the labels property from the data object :)

Keep coding!



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: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB4 4.25.3
  • Device: desktop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No