Iain,

 

Have you overridden mapcache also? Can you post a sample code to nail
down the problem?

 

Thanks

-Sunil

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of imjackson84
Sent: Monday, December 03, 2007 10:47 PM
To: [email protected]
Subject: [flexcoders] Line Chart Zooming - data points drawn incorrectly

 

Hi,

My application has a LineChart with a customized DateTimeAxis for
displaying stock data. One of the features I am working on is the
ability to zoom into a section of the chart, accomplished by adjusting
the axis min/max values.

The problem is that for charts showing intra-day data, when I zoom in
the data points are rendered incorrectly - specifically, the distance
on the x-axis between the 1st and 2nd points is much longer than it
should be, with the rest of the points squashed up in the remaining
space.

I've already verified that the transformCache() function in my
DateTimeAxis class is producing correct "convertedField" values, but
somehow the conversion from these fractional values to actual screen
coordinates is going wrong. Does anyone have any ideas about where
this error can be appearing? I've looked at the CartesianTransform
class, but I don't know if it's possible to use a customised version
of this in my application.

I hope this makes sense... thanks.

Iain

 

Reply via email to