我有一个整洁的图表,正在渲染重叠的列,其值超过6000但我的垂直轴保持在0-100,就像我的dataProvider被忽略一样。
这里的问题是“msAxis”
autoAdjust没有改变任何东西。我是否需要手动强制其值?
<mx:ColumnChart xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%" height="100%"
dataTipFunction="formatDataTip"
fontSize="12"
showDataTips="true"
initialize="init()"
>
<mx:horizontalAxis>
<mx:CategoryAxis id="haxis"
categoryField.time="t"
categoryField.exchange="x"
title.time="Time"
title.exchange="Exchange"
labelFunction.time="renderTime"
labelFunction.exchange="renderExchange"
/>
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer axis="{haxis}" canDropLabels="true"/>
</mx:horizontalAxisRenderers>
<mx:verticalAxisRenderers>
<mx:AxisRenderer axis="{msAxis}"
placement="left"
canDropLabels="true"/>
<mx:AxisRenderer axis="{oAxis}"
placement="right"
canDropLabels="true"
/>
</mx:verticalAxisRenderers>
<mx:series>
<mx:ColumnSet type="overlaid">
<mx:verticalAxis>
<mx:LinearAxis id="msAxis" autoAdjust="true" />
</mx:verticalAxis>
<mx:series>
<mx:ColumnSeries
xField.time="t" xField.exchange="x"
yField="ml"
fill="{sc_red}"
displayName="Max Latency"
showDataEffect="{interpolateIn}"
/>
<mx:ColumnSeries
xField.time="t" xField.exchange="x"
yField="al"
fill="{sc_blue}"
displayName="Average Latency"
showDataEffect="{interpolateIn}"
/>
</mx:series>
</mx:ColumnSet>
<mx:LineSeries yField="o"
displayName="Orders"
showDataEffect="{interpolateIn}"
>
<mx:verticalAxis>
<mx:LinearAxis id="oAxis" interval="1" />
</mx:verticalAxis>
</mx:LineSeries>
</mx:series>
</mx:ColumnChart>
答案 0 :(得分:2)
我认为您应该使用 verticalAxis 属性将系列影响到相应的轴。