Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: ChartLabels for Stacked, Grouped BarCharts?
Replies: 2   Last Post: Dec 21, 2009 3:33 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Gordon Robertson

Posts: 18
Registered: 11/15/07
Re: ChartLabels for Stacked, Grouped BarCharts?
Posted: Dec 21, 2009 3:33 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Brett

Thank you for your note. As you indicate, the cases I asked about are described in the Examples, Options and Applications.

Gordon


On 09-12-20 9:00 PM, "Brett Champion" <brettc@wolfram.com> wrote:

On Dec 20, 2009, at 5:54 AM, Gordon Robertson wrote:

> Could I ask for help with ChartLabels for Stacked and Grouped
> BarCharts in
> Mathematica 7? I've checked the MathGroup archives and Mathematica
> help docs.


<snip>

> I can guess that Ticks may be the approach to use, but wonder if I
> could as k
> more experienced folks for help. Could I also ask WRI to implement (or
> document) these BarChart use cases.
>


It sounds like you want:

BarChart[data2, ChartLayout -> "Stacked", ChartLabels ->
{Placed[labs2, Below], None}]
BarChart[data2, ChartLayout -> "Grouped", ChartLabels ->
{Placed[labs2, Below], None}]

Examples with this behavior in the documentation (not a comprehensive
list):

BarChart > Examples > Scope > Labeling and Legending > "For rows of
data"
BarChart > Examples > Options > ChartLabels > "Associate labels with
rows or datasets:"
BarChart > Examples > Applications > (Portfolio example)
ChartLabels > Examples > Basic Examples > (third example)

and is generally covered by

"ChartLabels->{spec1,spec2,...} uses the successive speci to specify
labels for successive dimensions in nested lists of datasets." in the
ChartLabels documentation.

Note that ChartLabels, ChartLegends, ChartElements have similar
behavior.

Brett Champion
Wolfram Research

--
Gordon Robertson
Canada's Michael Smith Genome Sciences Centre
Vancouver BC Canada
www.bcgsc.ca
604-707-5900 x5416



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.