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)
|
Hi, You can fully customize the tooltip with the "tooltipFormat" event. You can check in this example: http://www.jqchart.com/jquery/chart/ Code:$('#jqChart').bind('tooltipFormat', function (e, data) {
if ($.isArray(data) == false) {
var date = data.chart.stringFormat(data.x, "ddd, mmm dS, yyyy");
var tooltip = '<b>' + date + '</b><br />' + '<span style="color:' + data.series.fillStyle + '">' + data.series.title + ': </span>' + '<b>' + data.y + '</b><br />';
return tooltip; }
var date = data[0].chart.stringFormat(data[0].x, "ddd, mmm dS, yyyy");
var tooltip = '<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 />';
return tooltip; }); We're now checking the "borderColor" issue. Best Regards, Dragan Matek jqChart Inc.
|