我有一个带有图例的jqplot饼图,我希望在鼠标悬停在饼上时将图例文本显示为工具提示。我不知道该怎么做。有没有人有类似的经验?如何在jqplot饼图上显示工具提示
示例代码:
$(document).ready(function(){
var data = [['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14],['Out of home', 16],['Commuting', 7], ['Orientation', 9]];
var plot1 = jQuery.jqplot ('chart1', [data],
{
seriesDefaults: {
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
showDataLabels: true
}
},
legend: { show:true, location: 'e' }
}
);
});
感谢LOT:D – Anant
谢谢Koby。问候,安纳什 –
当从一部分的馅饼传递到另一部分时,你不工作,当你出门 – coorasse