Jump to content
Software FX Community

ValueToPixel & first value in chart

User (Legacy)

Recommended Posts


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


This topic is now archived and is closed to further replies.

  • Create New...