Topic: can you not show lables in doghnut pie chart?

Manamapps premium asked 1 year 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 1 year 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 premium answered 1 year ago


please reply. need answer quickley


Manamapps premium answered 1 year ago


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


Krzysztof Wilk staff answered 1 year 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

  • User: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB4 4.25.3
  • Device: desktop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No