0

I wanted to draw two line series on the time axis, like this:

line 1 = [2011-01-01, 1], [2011-01-02, 2], [2011-01-03, 3],,,2011..
line 2 = [2012-01-01, 4], [2012-01-02, 5], [2012-01-03, 6],,,2012..

but I knew that dateaxisrenderer needed the same date between line1 and line2, so I changed it to use the same dates, like this:

line 1 = [2012-01-01, 1], [2012-01-02, 2], [2012-01-03, 3],,,2012..
line 2 = [2012-01-01, 4], [2012-01-02, 5], [2012-01-03, 6],,,2012..

This solved that problem, but now I have a new problem.

The problem is that the line1's highlighter value is "2012-01-01, 1". Its original value is "2011-01-01, 1". I want to display the original value ("2011-01-01, 1") at the highlighter. How can I fix it?

4

1 回答 1

0

您似乎不需要将 line1 系列值从 11 更改为 12,因为日期轴渲染将处理它自己定义数据集的最大值和最小值的数据。此外,在将数据提供给 jqplot 函数之后,除非再次更改数据,否则不能期望更改点突出显示值。

于 2012-03-25T11:31:14.993 回答