I want to build a LineChart component where the color of the line is indicative on how high the value is. I should be able to do this buy just using a gradient stroke (see below) but for some reason the gradient only goes from left to right and the "angle" property is being ignored. How could i do this?
<mx:PlotChart id="bpChart" width="514" height="144" dataProvider="{measurementsXLC}" >
<mx:series>
<mx:LineSeries id="bpSeries" displayName="Series 1" yField="value" xField="date" showDataEffect="fade" stroke="{lstroke}">
<mx:lineStroke>
<mx:LinearGradientStroke angle="270.0" weight="3" scaleMode="vertical" >
<mx:entries>
<mx:GradientEntry color="#ff0000" ratio="0.0"/>
<mx:GradientEntry color="#00ff00" ratio="1.0"/>
</mx:entries>
</mx:LinearGradientStroke>
</mx:lineStroke>
<mx:itemRenderer>
<mx:Component>
<mx:CircleItemRenderer >
</mx:CircleItemRenderer>
</mx:Component>
</mx:itemRenderer>
</mx:LineSeries>
<mx:LineSeries id="bpSeries2" displayName="Series 1" yField="value2" xField="date" showDataEffect="fade" />
</mx:series>
<mx:horizontalAxis>
<mx:DateTimeAxis id="dateAxis" dataUnits="milliseconds" labelUnits="days" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis baseAtZero="false" autoAdjust="true" interval="5" />
</mx:verticalAxis>
</mx:PlotChart>