这是我的问题: 我有一个使用条形和线条的混合图表 我想在右侧垂直轴上添加一条代表收支平衡的水平线
<mx:ColumnChart id="cvpaOpenCloseRatio" x="79" y="107"
dataProvider="{CF_Closed_to_Opened_by_MonthResult.lastResult}"
showDataTips="true">
<mx:horizontalAxis>
<mx:CategoryAxis id="categoryAxis" categoryField="Month"/>
</mx:horizontalAxis>
<mx:verticalAxisRenderers>
<mx:AxisRenderer placement="left" axis="{v1}"/>
<mx:AxisRenderer placement="right" axis="{v2}"/>
</mx:verticalAxisRenderers>
<mx:series>
<mx:ColumnSeries id="columnSeries"
displayName="Total Closed"
yField="ClosedCount"
xField="Month"
>
<mx:verticalAxis>
<mx:LinearAxis id="v1" minimum="0" maximum="300"/>
</mx:verticalAxis>
</mx:ColumnSeries>
<mx:ColumnSeries id="columnSeries2"
displayName="Total Opened"
yField="OpenCount"
xField="Month"
></mx:ColumnSeries>
<mx:LineSeries id="columnSeries3" displayName="Closed/OpenRatio" yField="ClosedToOpenRatio" xField="Month"
>
<mx:verticalAxis>
<mx:LinearAxis id="v2" minimum="0" maximum="3" />
</mx:verticalAxis>
</mx:LineSeries>
<!--mx:LineSeries id="columnSeries4" displayName="Target" xField="Month" yField="1.5" verticalAxis="{v2}" horizontalAxis="{categoryAxis}" /-->
</mx:series>
</mx:ColumnChart>
<mx:Legend dataProvider="{cvpaOpenCloseRatio}"/>
我试图用
来实现这个目标<mx:LineSeries id="columnSeries4" displayName="Target" xField="Month" yField="1.5" verticalAxis="{v2}" horizontalAxis="{categoryAxis}" />
所以澄清平衡线是一条位于1.5的水平线,相对于右侧verticalAxis。
提前致谢 内特