Display Total in Donut Chart

1 Answer 13 Views
Chart
Anil
Top achievements
Rank 1
Anil asked on 18 Jun 2024, 03:37 AM

We are looking to display total number in donut chart.

Is it possible?

Number display in the center should display total when we do not mouse hover over any section of donut.

But if hover over any section, it should show that particular number in center. Look at image below.

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 20 Jun 2024, 01:08 PM

Hello Anil,

Thank you for the image and the details provided.

As this is a duplicate of a ticket opened in the Support system, I will copy my answer here as well for the community, but please keep the communication in one place.

In order to achieve the desired behavior, I decided to implement the described custom implementation.

It includes a Donut Chart and a div element with dynamic content that is placed in absolute position.

Here is the dojo example that I prepared for the case:

Feel free to give a try to the approach above and let me know if additional assistance with the Core wrapper code is needed.

 

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.
Tags
Chart
Asked by
Anil
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or