Wrong/bad ValueIndex on ClickSeries event?
Posted: Thu Dec 21, 2006 2:46 pm
On the ClickSeries event we use the ValueIndex to get the point label thus:
Unfortunately, this valueIndex does not appear to point to the right point. Now, perhaps there is something that we have misunderstood, here, somewhere...
Ok, there is definitely something that we have misunderstood. How can I tell? It's easy! Since we've had this problem, when I'm adding these points to my series I am now trying to read back what I think should be at that index, thus:
This gives astonishing results. The debug statement writes back what I just entered. Great. Only, not great. This only works for the first 40 points. When I look at .item(40).label (or any label for any item over that) there isn't anything there.
Thoughts?
It is not likely to be easy to extract a simple example reproducing this and I, unfortunately, cannot share the source of the entire project with you. I can give you a user (please email me privately for this) to allow you to download our executable and then I can supply files to allow you to see the problem in action. I could also, again, off group, supply you with much of the code around this problem.
regards,
charles
Code: Select all
Dim PointLabel As String = s.Item(valueIndex).Label
Ok, there is definitely something that we have misunderstood. How can I tell? It's easy! Since we've had this problem, when I'm adding these points to my series I am now trying to read back what I think should be at that index, thus:
Code: Select all
With tch.Series(currentS)
.Add(x, y, "X" & someNumber.toString, Series.PlotSeriesColor)
Debug.WriteLine(" Index: " & index & ", " & .Item(index).Label)
index += 1
Thoughts?
It is not likely to be easy to extract a simple example reproducing this and I, unfortunately, cannot share the source of the entire project with you. I can give you a user (please email me privately for this) to allow you to download our executable and then I can supply files to allow you to see the problem in action. I could also, again, off group, supply you with much of the code around this problem.
regards,
charles