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)
|
Currently you can do this with the 'tooltipFormat' event. If you look at this sample: http://www.jqchart.com/jquery/chart/You can change the 'tooltipFormat' event handler to: Code:$('#jqChart').bind('tooltipFormat', function (e, data) {
var date = data[0].chart.stringFormat(data[0].x, "ddd, mmm dS, yyyy");
var tooltip = '<div style="text-align:center"><b>' + date + '</b></br>' + '<span style="color:' + data[0].series.fillStyle + '">' + data[0].series.title + ': </span>' + '<b>' + data[0].y + '</b></br>' + '<span style="color:' + data[1].series.fillStyle + '">' + data[1].series.title + ': </span>' + '<b>' + data[1].y + '</b></br></div>';
return tooltip; });
Best Regards, Dragan Matek jqChart Inc.
|