Hi, Unfortunately the code is fairly large and split into multiple classes, I'm not really sure which code I could post - plus, this is an internal project for the company I'm working for so I wouldn't really be allowed to post much code anyway.
I am not over-riding mapCache(), I'm using the default functionality for that and it works fine. Could I just check what the exact process is for mapping data onto the screen, in terms of what functions are called? 1. mapCache() in DateTimeAxis converts the raw data into date values in milliseconds. 2. transformCache() in NumericAxis converts the values into fractions of the axis length, ranging from 0 to 1. 3. transformCache() in the chart's CartesianTransform object takes these fractional values and multiplies them by the width of the chart area in pixels, giving a pixel coordinate. In my case, steps 1 and 2 are working fine, it's somewhere after that point where things go wrong. Are there any other functions involved? And is there a way that I could use my own CartesianTransform, if only to try some manual debugging (I don't have Flex Builder). Thanks, Iain --- In [email protected], "Sunil Bannur" <[EMAIL PROTECTED]> wrote: > > 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 >

