Jump to content
Software FX Community

get point index from value

Recommended Posts

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?



Link to post
Share on other sites
  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...