MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Re: BarChart - intensity of colour increases up the

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81911] RE: [mg81844] Re: BarChart - intensity of colour increases up the
  • From: "Tom O'Brien" <tomfabtastic at hotmail.com>
  • Date: Sat, 6 Oct 2007 04:43:58 -0400 (EDT)
  • References: <fdvq2s$lhe$1@smc.vnet.net>

By way of example, if I apply your solution to a StackedBarChart it works w=
ell :

StackedBarChart[{1,2,3}, {3,3,3}]/.Rectangle[{x1_,
y1_},{x2_,y2_}]=A6Polygon[{{x1,y1},{x2,y1},{x2,y2},{x1,y2}},
VertexColors=AE{{1,0,0,0},{1,0,0,0},{1,0,0,y2},{1,0,0,
y2}}]

However, what if my StackedBarChart has two colours on each bar, eg:
StackedBarChart[{1,2,3}, {3,3,3}, BarStyle=AE{Yellow, Black}]

So my question is, how can I get the changing colour intensity up the bar (=
which has been achieved on the BarChart) on a StackedBarChart, where each b=
ar has two colours ?

Thanks - I appreciate your help,
Tom> To: tomfabtastic at hotmail.com; kuska at informatik.uni-leipzig.de; mathgro=
up at smc.vnet.net> Subject: Re: [mg81844] Re: BarChart - intensity of colour =
increases up the bar> From: drmajorbob at bigfoot.com> Date: Fri, 5 Oct 2007 1=
4:53:40 -0500> > Send an example.> > Bobby> > On Fri, 05 Oct 2007 03:53:43 =
-0500, Tom O'Brien <tomfabtastic at hotmail.com> > wrote:> > >> > Thanks,> > H=
owever, I'm having trouble getting it to work with a StackedBarChart > > th=
at has a colour for each bar. The Rectangles are gathered like {{a}, > > {b=
}, {c}, ...} so I want the first half of the rectangles to be one > > colou=
r and the second half another colour.> > Any suggestions ?> > Thanks,> > To=
m> Date: Thu, 4 Oct 2007 13:44:47 -0500> To: > > kuska at informatik.uni-leipz=
ig.de; mathgroup at smc.vnet.net; > > tomfabtastic at hotmail.com> Subject: Re: [=
mg81844] Re: BarChart - > > intensity of colour increases up the bar> From:=
 drmajorbob at bigfoot.com> > > > Or...> > Needs["BarCharts`"]> BarChart[{1, 2=
, 3}] /.> Rectangle[{x1_, > > y1_}, {x2_, y2_}] :>> Polygon[{{x1, y1}, {x2,=
 y1}, {x2, y2}, {x1, y2}},> > > VertexColors -> {{1, 0, 0, 0}, {1, 0, 0, 0}=
, {1, 0, 0, y2}, {1, 0,> 0, > > y2}}]> > Bobby> > On Thu, 04 Oct 2007 03:36=
:08 -0500, Jens-Peer Kuska > > > <kuska at informatik.uni-leipzig.de> wrote:> =
> > tomfabtastic at hotmail.com> > > > > > -- > DrMajorBob at bigfoot.com> > ____=


  • Prev by Date: RE: Re: BarChart - intensity of colour increases up the
  • Next by Date: Re: Re: BarChart - intensity of colour increases up the
  • Previous by thread: RE: Re: BarChart - intensity of colour increases up the
  • Next by thread: Re: Re: BarChart - intensity of colour increases up the