Hi Folks, Quick question, can I call a function from the xField in a chart - bar series and pass a field from DP...I can't seem to get the syntax correct? Thanks in advance.
example. (excerpted code)
private function calculate(x:String):String
var y:int = int(x)
y = y/60;
return String(y);
}
<mx:BarSeries
yField="@name"
xField="{calculate(@erroredSeconds)}"
displayName="Outage Minutes"/>
<mx:BarSeries
yField="@name"
xField="{calculate(@viewedSeconds)}"
displayName="Viewed Minutes"/>

