Rank: Advanced Member
Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered Joined: 1/3/2011(UTC) Posts: 483
Thanks: 0 times Was thanked: 87 time(s) in 87 post(s)
|
Try using the following code: Code: $(document).ready(function () { $('#jqChart').jqChart({ title: 'Hyperlinks', animation: { duration: 1 }, series: [ { title: 'Measure', type: 'column', data: [['Google', 70], ['Yahoo', 40], ['Bing', 85]], cursor: 'pointer', customData: ['www.google.com', 'www.yahoo.com', 'www.bing.com'] } ] });
$('#jqChart').bind('tooltipFormat', function (event, data) { var link = data.series.customData[data.index];
return "<b>" + data.series.title + "</b></br>" + "X = " + data.x + "</br>" + "Y = " + data.y + "</br>" + "My Link - " + link; }); }); Best Regards, Dragan Matek jqChart Inc.
|
1 user thanked Dragan for this useful post.
|
|