Niclas Svedberg Posted June 16, 2009 Report Share Posted June 16, 2009 I have a problem getting the correct values from AxisX.ValueToPixel(), if any at all. After loading the chart with values, I Quote Link to comment Share on other sites More sharing options...
rocioZ Posted July 30, 2009 Report Share Posted July 30, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.