ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Layer coordinates from Pyramid chart?
Posted by Seppo on Sep-09-2014 17:23
Hi,
is there a way to get the layer coordinates from a pyramid chart?

--
mydbr.com

  Re: Layer coordinates from Pyramid chart?
Posted by Peter Kwan on Sep-10-2014 00:04
Attachments:
Hi Seppo,

By "layer coordinates", do you mean the data value that is used to draw the layer, or do
you mean the pixel coordinates of the layer?

For the data value used to draw the layer, the data value is supplied by your code, and
ChartDirector does not keep track of the value, and there is no API to return the value back
to your code. So your code would need to store and keep track of the value itself.

For the pixel coordinates of a layer, note that a layer is not a single point, but a complex
shape, I have attached a pyramid for your reference. If you would like to obtain the outline
of the layer shape, one method is to obtain an image map using getHTMLImageMap, and the
parse the image map to obtain the coordinates. The image map is in standard HTML <area>
tags and should not be difficult to parse.

Regards
Peter Kwan
rotatedpyramid_p.jpg

  Re: Layer coordinates from Pyramid chart?
Posted by Seppo on Sep-10-2014 03:34
Peter,
I was referring to the pixel coordinates. getHTMLImageMap works fine. Thank you very much
for the prompt reply.

--
Seppo