jqPlot Cursor follow series line

此生再无相见时 提交于 2019-12-23 01:45:18

问题


I have a line graph using jqPlot with one series and several data points across it and smoothed lines. I'm using the Cursor plugin to show crosshairs and a tooltip to show x and y points.

Is it possible to have the cross hairs follow the line on the series? So the horizontal line would fix to the y position of the line and not following the mouse. I see you can get the x/y position of each data point but not of the lines inbetween points.

Thanks


回答1:


If you are using the built in smoothing options the smoothed data points are stored at:

plotObj.series[0].renderer._smoothedPlotData

with pixel locations at:

plotObj.series[0].renderer._smoothedData


来源:https://stackoverflow.com/questions/11262062/jqplot-cursor-follow-series-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!