Ely,
I'm creating an annotation that gets rendered on the chart at a
physical location determined by a particular chart element. When I load
the annotation, I know the horizontal axis value of the chart item, and I know
the y-value that item represents. I use the transformCache method to get
the screen coordinates that my annotation should be placed (the top left corner
of the chart item, be it a column, line data point, plot point, etc...) My
problem was that calling transformCache on the Chart.dataTransform object was
using the left axis values for conversion. By calling the dataTransform
objects methods on the series the element belongs to solved my problem. I
really hope that made sense. If not, I e-mailed you the application
earlier today and can point directly to the code where it's being used.
Thanks,
Brendan
On 9/12/06, Ely
Greenfield <[EMAIL PROTECTED]com> wrote:
Hi
Brendan. Can you give a little more detail of what you're trying to do and how
you're solving it? I have a nagging feeling you still might be mis-using
the API in some way.
Ely.
From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of
Brendan Meutzner
Sent: Tuesday, September 12, 2006 3:23
PM
To: [EMAIL PROTECTED]ups.com
Subject: Re: [flexcoders] Re:
DataTransform.transformCache
Bill,
Thanks so much. It was looking at the DataTransform
object the wrong way. Once you clarified below that an instance is tied
to the Series, I was able to get my example working by calling the series
instance related to that right axis.
Thanks
again,
Brendan
On 9/12/06, bill_sahlas <[EMAIL PROTECTED]com > wrote:
Hello,
From one of our engineers that worked on Charting
CartesianCharts can own multiple data transforms. Each data
transform is associated with a specific set of axes...one horizontal, one
vertical, etc. When you specify a series, it gets associated with a
single data transform, and hence a single set of axes. The built in
cartesian chart types have two data transforms...primary, and
secondary. If you put a series in the primary set, it gets the primary
transform+axes....in the secondary set, it gets the secondary
transform+axes. There's no supported way to reach across from a
primary series and transform against the secondary axes.
HTH,
Bill
--- In [EMAIL PROTECTED]ups.com, "Brendan Meutzner" <[EMAIL PROTECTED].>
wrote:
>
> Hi,
>
> I'm unable to figure out how to
specify which verticalAxis (I have two) I
> want to use for the
transformCache method on DataTransform. I'd like to use
> the
secondVerticalAxis in order to do the calculation. Does somebody have a
> working example?
>
> Thanks,
>
>
Brendan
>