Displaying data points in Flex Line chart

后端 未结 4 1821
遥遥无期
遥遥无期 2021-01-16 11:24

I have a flex line chart. Instead of the default behavior of having to hover over parts of the line to see the data points, is there a way to change the rendering of each p

4条回答
  •  天命终不由人
    2021-01-16 12:20

    As posted in response to another question on the same subject...

    If you're using , then set the following property:

    itemRenderer="mx.charts.renderers.CircleItemRenderer"
    

    When constructing a LineSeries in ActionScript, then set the itemRenderer style on your LineSeries object before adding to the series array:

    lineSeries.setStyle("itemRenderer", new ClassFactory(mx.charts.renderers.CircleItemRenderer));
    

    Don't forget to...

    import mx.charts.renderers.*;
    

    You don't have to stick to the circle item renderer either, you can use any of the item renderers found in the renderers package.

提交回复
热议问题