4 Replies Latest reply on Aug 27, 2008 7:50 PM by wiser4me97

    BarSeries with Different colors

    wiser4me97
      How can i set different colors for my BarSeries which will be based on another array of data?

      Something Like:
      first bar - ===red====blue======yellow====green==
      2nd bar - ===blue===green======gray===
      3rd bar - =======red=====yellow====gray===

      on my yAxis is date by month and on my xAxis is # of tasks.
      different colors are for the Names:
      Name1=red
      Name2=blue
      Name3=yellow
      Name4=green
      Name5=gray
      Name ... = .another color...

      since the list of names is dynamic, i cant define a specific bar series for each. My barchart type is already set to stacked so it displays the total # of tasks per month.

      Any help, tnx!!!
        • 1. Re: BarSeries with Different colors
          Level 7

          "wiser4me97" <webforumsuser@macromedia.com> wrote in message
          news:g90810$j52$1@forums.macromedia.com...
          > How can i set different colors for my BarSeries which will be based on
          > another
          > array of data?
          >
          > Something Like:
          > first bar - ===red====blue======yellow====green==
          > 2nd bar - ===blue===green======gray===
          > 3rd bar - =======red=====yellow====gray===
          >
          > on my yAxis is date by month and on my xAxis is # of tasks.
          > different colors are for the Names:
          > Name1=red
          > Name2=blue
          > Name3=yellow
          > Name4=green
          > Name5=gray
          > Name ... = .another color...
          >
          > since the list of names is dynamic, i cant define a specific bar series
          > for
          > each. My barchart type is already set to stacked so it displays the total
          > # of
          > tasks per month.

          http://livedocs.adobe.com/flex/3/html/charts_formatting_07.html


          • 2. Re: BarSeries with Different colors
            wiser4me97 Level 1
            that's what i've tried before but it only fills one color per BarSeries. what i'm trying to accomplish is to have different colors per BarSeries. on the livedocs, the examples were all static defined barseries, in my case i want it to be dynamic.

            maybe i wasn't clear enough with my graph sample, how about this one:

            mar - ===red====blue======yellow====green==
            feb - ===blue===green======gray===
            jan - =======red=====yellow====gray===
            |-----5-----10-----15-----20-----25-----30-----35-----40-----45---
            • 3. Re: BarSeries with Different colors
              Level 7

              "wiser4me97" <webforumsuser@macromedia.com> wrote in message
              news:g92qgu$a36$1@forums.macromedia.com...
              > that's what i've tried before but it only fills one color per BarSeries.
              > what
              > i'm trying to accomplish is to have different colors per BarSeries. on the
              > livedocs, the examples were all static defined barseries, in my case i
              > want it
              > to be dynamic.
              >
              > maybe i wasn't clear enough with my graph sample, how about this one:
              >
              > mar - ===red====blue======yellow====green==
              > feb - ===blue===green======gray===
              > jan - =======red=====yellow====gray===
              > |-----5-----10-----15-----20-----25-----30-----35-----40-----45---
              >

              Look again.


              • 4. Re: BarSeries with Different colors
                wiser4me97 Level 1
                ok thanks for the reply, i finally found the answer here:
                Creating charts in ActionScript