【问题标题】:How do I change the background line color in a chart?如何更改图表中的背景线颜色?
【发布时间】:2012-07-26 23:23:48
【问题描述】:

我似乎不知道如何更改折线图中的背景水平(和垂直)线条颜色。到目前为止,这是我所拥有的:

<mx:LineChart width="100%" height="100%" dataProvider="{dataSet}">
    <mx:series>
        <mx:LineSeries showDataEffect="{eff}" yField="x" />
    </mx:series>
</mx:LineChart> 

【问题讨论】:

    标签: apache-flex charts flex3


    【解决方案1】:

    我想通了。您在图表的背景元素属性中定义一个 GridLines 对象,如下所示:

    <mx:LineChart width="100%" height="100%" dataProvider="{dataSet}">
    
        <mx:backgroundElements>
            <mx:GridLines gridDirection="both"/>
        </mx:backgroundElements>
    
    </mx:LineChart>
    

    http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7c45.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-29
      • 1970-01-01
      • 2016-10-08
      • 2020-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-14
      相关资源
      最近更新 更多