What’s up with Flex’s AreaChart bug, does anybody know how to fix it? It causes ones tooltips to display the wrong value for minFields.
I.e. for:
<mx:AreaSeries yField="TotalVariableCost" minField="TotalFixedCost" displayName="Total Cost">
It will show:
Total Cost
high: TotalVariableCost
low: TotalVariableCost
As opposed to:
Total Cost
high: TotalVariableCost
low: TotalFixedCost
This bug is suppose to be in lines 2058 to 2083 of AreaSeries.as – but that stuff is way beyond my comprehension.
–Stephen
Yep, it’s a bug in AreaSeries. Due to the stupid way that flex charts are designed, the only real way to fix it is to set a custom
dataTipFunctionon the AreaChart.Here’s a copy of the relevant code with the bug fixed:
I just changed
formatForScreen(lowItem.yValue)toformatForScreen(lowItem.minValue)in one place. You can use it like this: