views:

408

answers:

3

So I have extended the PlotChart that comes with Flex to have the ability to draw trend-lines. To do this, I have to get pixel positions. How can I convert (100px,100px) in pixels to a point on the graph, such as (0.7,1.0)?

A: 

You can draw on charts using the CartesianChartCanvas, here is the link to the LiveDoc: Drawing on Chart Controls

To answer your question more specifically, CartesianChartCanvas supports drawing by pixels.

CookieOfFortune
A: 

You probably want to create a subclass of ChartElement, and add it to annotationElements for your chart. The docs for Flex 2 show an example: Livedocs

Sophistifunk
A: 

PlotSeries::dataToLocal(...) ended up working fine. thanks for the thoughts guys

geowa4