我有一个多系列图表,不仅要突出显示点的 x
和 y
坐标,还要突出显示 series
名称。
可能吗?
最佳答案
我发现最简单的方法是这样的:
$.jqplot('chart-id', values, {
series: [
{
highlighter: { formatString: 'serie1: %s, %s'}
},
...
]
axes : {
xaxis:{
renderer:$.jqplot.DateAxisRenderer,
tickOptions:{
formatString:'%b %#d'
}
},
yaxis:{
tickOptions:{
formatString:'%.2f'
}
}
},
highlighter: {
show: true
}
});
关于jquery jqplot jqplot.highlighter 在多系列图表中显示系列名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8637479/