User (Legacy) Posted December 20, 2004 Report Share Posted December 20, 2004 Hello, I use constant lines as cursors which can be moved along the x axis. I successfully use the PixelToValue method in order to get the appropriate x values. Now I want to show the y values of all series at the cursor position. Therefore, I must be able to get the point index from my x axis value (chart.Values[series,point]. Is there an easy way like ValueToIndex or shall I iterate over the whole XValue array by comparing each value to get the index? Thanks Thomas Link to comment Share on other sites More sharing options...
Software FX Posted December 20, 2004 Report Share Posted December 20, 2004 No. Because there can be multiple values at the same X-Position. Unless your data can be determined by some kind of formula, you need to iterate. -- FP Software FX Link to comment Share on other sites More sharing options...
dmccollough Posted May 6, 2009 Report Share Posted May 6, 2009 How would you iterate through the XValues ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.