Getting circle/diamond/etc datapoints on an ActionScript dynamically created Flex charting lineseries 1

Posted by Tim Connor Fri, 11 Apr 2008 18:40:00 GMT

myLineseries.setStyle("itemRenderer", new ClassFactory(DiamondItemRenderer));

It works similarly for lineSegmentRenderers, even custom ones, like Quietly Scheming’s Dashed Line Renderer. I just need to figure out how to set a parameter for the renderer created by the class factory now, so I can use different patterns of spaces to make different dashed and dotted lines.


Leave a comment

  1. Avatar
    Tim Connor 17 minutes later:

    Thankfully that was solved pretty quickly: setting itemRenderer properties via a ClassFactory

    var foo:ClassFactory = new ClassFactory(DashedLineRenderer); = {pattern: [10,2,5]}