1 Reply Latest reply on Aug 20, 2007 9:53 AM by flexPro

    Item Renderer passed to legend

    MargaritaE
      Hi,
      I have written an item renderer in Action script to change the shape of the columns on a column chart. How can I pass this through to the Legend?

      I tried adding:
      legendMarkerRenderer=
      "myRenderer"
      itemRenderer="myRenderer"
      inside the column series tags of my mxml but this didn't work - I just got a blank screen when I tried to run the application.

      If I put
      legendMarkerRenderer=
      "mx.charts.renderers.DiamondItemRenderer" this works OK - but of course, it isn't what I want.

      Do I need to put something inside my action script to tell it to pass the info to the legend?

      Thanks in advance for any help.

      M
        • 1. Re: Item Renderer passed to legend
          flexPro Level 1
          Be sure to include the full classpath to your renderer in the reference within your MXML. For example, if the package that your renderer is in is com.example and the name of your renderer's class is MyRenderer, you would write the following: legendMarkerRenderer="com.example.MyRenderer". Keep in mind that case matters.

          If this doesn't work, there is probably something wrong with your ItemRenderer, so you should post that code and we can help you out.