Jump to content
Software FX Community

ValueToPixel & first value in chart


User (Legacy)
 Share

Recommended Posts

Hi

I'm using the ValueToPixel Method to find out where to draw Annotation

Objects and I use a slider to switch between three different charts. All are

XY charts. When the slider is changed I always first remove and then add the

annotation objects again. When the program loads ChartFX for the first time

ValueToPixel works fine. However, when I then change the slider ChartFX

always returns wrong values using the ValueToPixel method.

For example: I have 2 points in an xy-chart, each one has the axis

coordinates 102, 0.45.

Using the ValueToPixel method delivers: point1 (x = 20, y = 100 wrong), for

point2 (x = 250, y = 30 right) - Although the points have the same values I

get different coordinates. What am I doing wrong?

Thanks in advance.

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