ShowAllDataTips仅在LineSeries中

时间:2014-12-11 14:43:48

标签: actionscript-3 flex flex4.6 lineseries

我有下一个代码

<mx:LineChart id="LEChart" width="900" height="600" 
                      showDataTips="true"  showAllDataTips="false"  
                      rollOver="lineChart_rollOver(event)"
                      rollOut="lineChart_rollOut(event)">                                       
            <!-- vertical axis -->
            <mx:verticalAxis>
                <mx:LinearAxis title="U/Uratedd" minimum="0.50" maximum="1.50"/>
            </mx:verticalAxis>

            <mx:horizontalAxis>
                <mx:LogAxis id="LE70" interval="10" minimum="1000"  maximum="1.0E7" title="Life expectancy(h)"/>
            </mx:horizontalAxis>

            <!--<mx:horizontalAxisRenderers>
                <mx:AxisRenderer axis="{LE70}" canDropLabels="true"/>
            </mx:horizontalAxisRenderers>-->                                        

            <mx:series>
                <mx:LineSeries dataProvider="{FlexGlobals.topLevelApplication.arrLE70}" yField="zx" xField="fx" form="curve" displayName="Profit"/>
                <mx:LineSeries dataProvider="{FlexGlobals.topLevelApplication.arrLE85}" yField="zx" xField="fx" form="curve" />
            </mx:series>    

        </mx:LineChart> 
        <mx:Legend dataProvider="{LEChart}" horizontalAlign="center" verticalAlign="middle"/>

我得到这个图片 http://subefotos.com/ver/?e9e23ef45417b02a7f7f5bd582574788o.png

当我把鼠标放在上面时,是否可以只在一个lineserie中显示所有数据提示?

提前致谢。

0 个答案:

没有答案