Jump to content
Software FX Community

AxisX.ValueToPixel() return 0.0


Niclas Svedberg
 Share

Recommended Posts

  • 1 month later...

ValueToPixel needs to be called after the chart has been given a size and it is shown. The most common cause for ValueToPixel to return incorrect values is that it is called before this happens. The reason is the chart has not been rendered yet and all of these calculations are done at render time.

You can call Chart.UpdateSizeNow() after you have recalculated your axes and before calling ValueToPixel to force these calculations at any time.

post-5825-1392240974088_thumb.jpg

Link to comment
Share on other sites

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.

Guest
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.

 Share

×
×
  • Create New...