MathGroup Archive 2011

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

Search the Archive

Re: Display BarChart ticks in AccountingForm?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121001] Re: Display BarChart ticks in AccountingForm?
  • From: Brett Champion <brettc at wolfram.com>
  • Date: Sun, 21 Aug 2011 05:32:11 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201108201017.GAA04962@smc.vnet.net>

On Aug 20, 2011, at 5:17 AM, Porscha Louise McRobbie wrote:

> Hello,
>
> I have a BarChart with large y-values:
>
> BarChart[{1 10^13, 2 10^13, 3 10^13}, ChartLabels -> {"a", "b", "c"},
>  Ticks -> {None, {1 10^13, 2 10^13, 3 10^13}}]
>
> I do not want the y-axis tick marks to display in scientific notation. 
> How can I get the tick marks to display using AccountingForm?  The 
> following does not seem to work:
>
> BarChart[{1 10^13, 2 10^13, 3 10^13}, ChartLabels -> {"a", "b", "c"},
>  Ticks -> {None,
>    AccountingForm[#, DigitBlock -> 3] & /@ {1 10^13, 2 10^13,
>      3 10^13}}]

You need to say where to put the ticks, as well as how they should be formatted:

BarChart[{1 10^13, 2 10^13, 3 10^13}, ChartLabels -> {"a", "b", "c"},
 Ticks -> {None, {#,
      AccountingForm[#, DigitBlock -> 3]} & /@ {1 10^13, 2 10^13,
     3 10^13}}]

Brett Champion
Wolfram Research




  • Prev by Date: Re: What do I do to get better curves?
  • Next by Date: Re: Display BarChart ticks in AccountingForm?
  • Previous by thread: Re: Display BarChart ticks in AccountingForm?
  • Next by thread: Re: Display BarChart ticks in AccountingForm?