我正在使用jquery插件jqplot来绘制一些条形图。当鼠标悬停在上面时,我希望在工具提示中显示该条的刻度和值。我已经尝试过
highlighter: { show: true,
showTooltip: true, // show a tooltip with data point values.
tooltipLocation: 'nw', // location of tooltip: n, ne, e, se, s, sw, w, nw.
tooltipAxes: 'both', // which axis values to display in the tooltip, x, y or both.
lineWidthAdjust: 2.5 // pixels to add to the size line stroking the data point marker
}
但是它并没有起作用。柱状图的颜色在视觉上变浅了,顶部有一个小点(理想情况下应该消失--可能是由于折线图渲染器的问题),但是没有任何工具提示。有人知道我该如何做吗?我会有很多条柱状图,如果只在下面显示它们,那么x轴将会很混乱。