当用 jqPlot 绘制图表时,我的曲线包含正值和负值,因此穿过 x 轴。我想强调 0 处的 x 轴,以便更清楚地区分正值和负值。有没有办法做到这一点 ?
在我使用示例曲线的代码下方:
$.jqplot(
'plotDiv',
[[[40,-5], [41,-5], [42,-5], [43,-5], [44,-5], [45,-5],
[46,-5], [47,-5], [48,-5], [49,-5], [50,-5], [51,-4],
[52,-3], [53,-2], [54,-1], [55,0], [56,1], [57,2], [58,3], [59,4], [60,5]]],
{ title:{text:"Results"},
axes: {
yaxis: {tickInterval: 2, label: 'Profit'},
xaxis: {tickInterval: 2, label: 'Price'}}});});
提前致谢