Welcome Guest Search | Active Topics |

Donut Chart hover detail display
ck31wong
#1 Posted : Thursday, July 07, 2016 4:08:52 PM(UTC)
Rank: Newbie

Groups: MvcDV, Registered
Joined: 12/22/2015(UTC)
Posts: 7

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi jqChart team,
thanks for the great product so far.

one of the projects I am working on requires the use of donut chart. my client request not to show the hover values which has the brackets.[

instead of showing
Nobody
14.4 (14.40%)

i just want to show
Nobody
14.4

is it possible?

Kindly advise. Thank you,
Keith
Ivan
#2 Posted : Saturday, July 09, 2016 8:51:23 AM(UTC)
Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 11/5/2012(UTC)
Posts: 131

Thanks: 0 times
Was thanked: 15 time(s) in 15 post(s)
Hi,

you can fully customize the Donut chart tooltip. You can check the pie chart example code:
http://www.jqchart.com/jquery/chart/ChartTypes/PieChart

In your case you can use:

Code:
$('#jqChart').bind('tooltipFormat', function (e, data) {
               
                return '<b>' + data.dataItem[0] + '</b><br />' +
                       data.value;
            });


More info:
http://www.jqchart.com/docs/aspnetmvc/guides/#!/guide/Tooltips-section-custom-tooltips
Best,
Ivan Petrov
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.167 seconds.