 
 
 
 
 
 
Re: Re: Re: BarChart Range
- To: mathgroup at smc.vnet.net
- Subject: [mg103652] Re: [mg103631] Re: [mg103579] Re: [mg103551] BarChart Range
- From: "David Park" <djmpark at comcast.net>
- Date: Thu, 1 Oct 2009 06:40:09 -0400 (EDT)
- References: <28656482.1254107571753.JavaMail.root@n11> <200909291137.HAA25545@smc.vnet.net> <31985466.1254302075264.JavaMail.root@n11>
Yes, the second solution I posted was incorrect in the Tooltips.
This is fairly easily fixed. Using the original poster's more complete
example:
BarChart[Tooltip[# - 40, #] & /@ {43.34, 43.60, 44.19, 44.73}, 
 ChartStyle -> {GrayLevel[0.6]}, 
 ChartLabels -> {"0.25", "0.33", "0.50", "0.75"}, 
 FrameTicks -> {None, {{0, 40}, {1, 41}, {2, 42}, {3, 43}, {4, 44}}}, 
 PlotLabel -> 
  "Average percent of wild dogs dying due to dehydration \n tested at \
\ different values of the parameter 'river-radius'", 
 Frame -> {True, True, False, False}, 
 FrameLabel -> {"Chance (percent) of wild dogs drinking water daily", 
   "The radius value a wild dog can\n look around themselves for a \ \
river"}, ImageMargins -> 10]
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  
From: David Annetts [mailto:david.annetts at iinet.net.au] 
Hi Guys,
> 
> BarChart[{43.34, 43.60, 44.19, 44.73} - 40,  ChartLabels -> 
> {"a", "b", "c", "d"}]
> 
> But now the y tick values are incorrect. You could write your 
> own y ticks but I would use the CustomTicks in Presentations.
It's a small point, but modifying data in this manner will result in
Tooltips that are incorrect.  
It's an aside to the OP question, but how would you accomplish both --
modify the data _and_ ensure correct tootips?
Regards,
Dave.

