【发布时间】:2011-02-03 17:29:20
【问题描述】:
我正在使用 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 轴就会变得杂乱无章。
【问题讨论】:
标签: javascript jquery graph charts jqplot