Hi Amy,
My graph is a multiple series (Column and Line).
I successfully modified the column series datatip but my line series
data tip is now giving me an error:
"Type Coercion failed: cannot convert
mx.charts.series::[EMAIL PROTECTED] to
mx.charts.series.ColumnSeries."
How can I have another function for my LineSeries data tip?
This is my script:
public function myDataTipFunction(e:HitData):String
{
var columnValue:String;
var value:String;
var yF:String = ColumnSeries(e.element).yField;
if (yF == "importations")
{
columnValue = ColumnSeries(e.element).displayName + "\n" +
e.item.period + "\n" + numberFormatter.format(e.item.importations);
value = columnValue;
}
else if (yF == "finalises")
{
columnValue = ColumnSeries(e.element).displayName + "\n" +
e.item.period + "\n" + numberFormatter.format(e.item.finalises);
value = columnValue;
}
return value;
}
Thank you.
-David
--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "sailorsea21" <sailorsea21@>
> wrote:
> >
> > Hi everyone,
> > I have a multiple series graph: ColumnSeries and LineSeries.
> > How can I modify the value displayed in my ColumnSeries datatip?
> > The value is a numeric value like 20465.
> > I would like to apply a numberFormatter to the value displayed in
the
> > ColumnSeries datatip without affecting the LineSeries datatip. Is
> > this possible?
>
> http://livedocs.adobe.com/flex/3/html/help.html?
> content=charts_displayingdata_08.html
>