Jump to content
Software FX Community

Location in pixels of point values


joe.awwad

Recommended Posts

Hi, I'm trying to locate the position in pixels of the points in my charts. I'm doing the following:

int yp = chart.getAxisY().valueToPixel(chart.getData().getY().get(series, point()));

int xp = chart.getAxisX().valueToPixel(point);

The above code is working well except for pies and doughnuts. It's returning [xp = 0, yp =0]

Is there any way of getting the location of a pixel inside the area covered by value in a chart?

I would appreciate any help on the matter.

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.

×
×
  • Create New...