1 Reply Latest reply on Jan 4, 2012 10:56 PM by agile116@hotmail.com

    chartSeriesStyles didn't apply to chart

    agile116@hotmail.com

      Hi All,

       

      In my flex 4.5 application I have defined the following styles for my ColumnChart in the css file. It works in a test app, but it seems the chartSeriesStyles are never applied to my column chart. It just fills with black. Does anyone know the possible issue? Thank you very much.

       

      SSCColumnChart {

          chartSeriesStyles: c01, c02, c03, c04, c05, c06, c07;

          negativeBackgroundColor: #E2E2E2;

          paddingBottom: 4;

          paddingLeft: 4;

          paddingRight: 4;

          paddingTop: 4;

      }

      .c01 {

          fill: #9A5299;

          areaFill: #9A5299;

      }

      .c02 {

          fill: #C25E5C;

          areaFill: #C25E5C;

      }

      .c03 {

          fill: #CB8C44;

          areaFill: #CB8C44;

      }

      .c04 {

          fill: #326B84;

          areaFill: #326B84;

      }

      .c05 {

          fill: #6AAAAF;

          areaFill: #6AAAAF;

      }

      .c06 {

          fill: #646464;

          areaFill: #646464;

      }

      .c07 {

          fill: #B1B1B1;

          areaFill: #B1B1B1;

      }

        • 1. Re: chartSeriesStyles didn't apply to chart
          agile116@hotmail.com Level 1

          I can get the chartSeriesStyles in the following way, but it seems the fill and the areaFill are not working.

          var css:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("com...SSCColumnChart");

          trace(css.getStyle("chartSeriesStyles"));

          The result is c01,c02,c03,c04,c05,c06,c07

          Anyone can help me? Or is there any way to get fill or areaFill from .c01 etc? Waiting for your help. Thanks.