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
2009-04-21 01:18:08
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
2009-04-21 02:38:18
A:
PlotSeries::dataToLocal(...) ended up working fine. thanks for the thoughts guys
geowa4
2009-04-22 16:30:21