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

Message ListMessage List     Post MessagePost Message

  TO know X axis value in XY chart while y value having
Posted by anbu on May-08-2012 21:07
i drawn an arc based upon (x,y) coordinate values(eg (200,80),(250,60),(300,45),(350,30)), I am having y axis value eg(y=50). i want intersect point x  of both the arc and y(50) axis line at  run  time through the VB6.0 form load function. can you help?

  Re: TO know X axis value in XY chart while y value having
Posted by Peter Kwan on May-09-2012 02:14
Hi anbu,

Unluckily, ChartDirector cannot use to compute the intersection points between two lines. It can only plot the lines. You would need to use your own code to compute the intersection if you need them.

When plotting the lines, ChartDirector does not remember every pixel it plots. For example, after it plots one pixel, it may release the memory or reuse the same memory to compute another pixel. So ChartDirector may never actually see the entire line. Also, many of the computations in ChartDirector occurs after the data values are converted to pixel coordinates. It is computed only up to the accuracy required in pixel graphics. As a result, there is no API to query ChartDirector which pixel or data values it has plotted.

Regards
Peter Kwan

  Re: TO know X axis value in XY chart while y value having
Posted by anbu on May-09-2012 16:47
thanks to reply