Hi Johannes, The actual data to chart is of course already provided to the 2 series via the dataprovider - the reason I need series 2 renderer to know about series 1 is in order to position the line segments exactly above the series 1 columns as Flex auto adjusts those column positions based on underlying data/position of the moon etc :-)
--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]> wrote: > > i think you are making your own life difficult. calculate the values before > hand and render it then instead of trying to do it while you render, > > On Thu, Jul 31, 2008 at 7:26 PM, chigwell23 <[EMAIL PROTECTED]> wrote: > > > Hi Laurent, > > > > Yes true, but the data passed to the renderer is only the data for the > > associated series, and I also need the data for the first series in > > order to do my calcs within the renderer :-( > > > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Laurent > > Cozic <pogopixels@> wrote: > > > > > > Normally, the way to pass parameters to the item renderer is through > > its "data" property. So just make sure that your data provider > > contains whatever information you need to set the item renderer position. > > > > > > -- Laurent Cozic > > > > > > > > > Flash, Flex and Web Application development > > > http://pogopixels.com > > > > > > > > > > > > ----- Original Message ---- > > > From: chigwell23 <chigwell23@> > > > To: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> > > > Sent: Thursday, July 31, 2008 4:33:54 PM > > > Subject: [flexcoders] Chart: pass info about series1 to series2 > > lineSegmentRenderer callback? > > > > > > > > > First question is whether I can pass actual parameters to a callback > > > in the first place? This is what I need to do: > > > > > > <mx:ColumnSeries id="salesSeries" > > > yField="sales" > > > > </mx:ColumnSeries> > > > > > > <mx:LineSeries id="percSeries" > > > yField="percent" > > > lineSegmentRenderer ="PercentLineRen derer("orig callback params", > > > "new callback params")"> > > > </mx:LineSeries > > > > > > Conventionally of course the lineSegmentRenderer gets no params as a > > > callback. But in this instance I need to manipulate the position of > > > the "percent" line series lines through the renderer based on "sales" > > > series data so that the lines are positioned exactly over the columns > > > of the "sales" series". I have code in the renderer that positions the > > > lines, but different underlying data for the column series (2 side by > > > side cols for each data point), changes the width and horizontal > > > position of the columns and then the "percent" line fragments above no > > > longer line up. > > > > > > If I could get the "sales" series info to the "percent series > > > "renderer" I think I stand a chance of coding "interacting series" > > > > > > A big thank you in advance, > > > > > > Mic. > > > > > > > > > > > > > -- > j:pn > \\no comment >