MathGroup Archive 2011

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

Search the Archive

BarChart Labeling

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121358] BarChart Labeling
  • From: Don <donabc at comcast.net>
  • Date: Mon, 12 Sep 2011 04:21:14 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I have spent hours trying to do something that in 
principle is very simple but it's not simple 
in Mathematica unless you stumble across 
 the magic keystrokes.


Here is a bar chart that illustrates the problem. 

data = RandomReal[{0,1.},10]
BarChart[data, LabelingFunction->Above, ChartLabels-> Range[10],
PlotRangePadding->{None, 0.1}]

As you can see, the height numbers above the bars have too many decimal places
to look good on the chart.

Specifically, what is the secret  to getting  the numbers which are the heights of the bars
to be printed in format NumberForm[#, {3,2}] (only two decimal digits)  with 
Style[FontFamily->Arial, Bold, 12].

Thank you in advance.




  • Prev by Date: Re: applying a real texture in Mathematica
  • Next by Date: Re: Texture in version 8, fine, but don't export...?
  • Previous by thread: Re: Step increase in Table
  • Next by thread: Re: BarChart Labeling