How to display data points in Flex linechart

Flex linechart is a very useful chart control, but the default behavior is not perfection. when we using it, we have to hover over parts of the line to see the data points, is there a way to change the rendering of each point and have them always displayed? The answer is YES, it is easy, do like this:

<mx:LineSeries yField="yFielditemRenderer="mx.charts.renderers.CircleItemRenderer">
    <mx:lineStroke>
        <mx:Stroke color="#A5BC4E" weight="2" alpha="0.6" />
    </mx:lineStroke>
    <mx:stroke>
        <mx:Stroke color="#A5BC4E" weight="1" />
    </mx:stroke>

</mx:LineSeries>

I think you are using <mx:LineSeries>, too. You can set the itemRenderer property(like the blue code) to display the data points, and the red code is for the data point’s style, like color, weight and so on.

现在还没有评论,去坐沙发?

在Flex中的更改滚动条的外观(样式)

在Flex中使用容器的时候,经常会遇到出现滚动条的情况,虽然官方提示的滚动条外观已经非常漂亮,但有个时候我们还是会有种修改滚动条外观的冲动,让我们的程序看起来更和谐些.

在Flex中,简单的修改控件的外观可以使用样式(Style)和皮肤(skin),这里修改滚动的外观也是如此.首先先来比较下修改前后的滚动条样式(以横向滚动条为例).

点击这里阅读全文…

现在还没有评论,去坐沙发?