Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to make a chart with labels, but I would like for the labels on the chart to be white for purposes of visibility.

I am aware of the Style[expression, White] option, but when I apply it, my labels go away entirely.

Bad Image

Code is thus:

snp = Log10[Delete[data[[All, 4]], 1]];
BarChart[snp, 
  PlotLabel -> "Plot of Single Nucleotide Polymorphisms", 
  ChartLabels -> Placed[names, Center, Rotate[#, 90 Degree] &], 
  ChartStyle -> "LightTemperatureMap", 
  ChartLegends -> names]
share|improve this question

1 Answer 1

up vote 4 down vote accepted
data = {1, 2, 3, 4, 5, 6, 7};
names = {1, 2, 3, 4, 5, 6, 7};
snp = Log10[data];
BarChart[snp, PlotLabel -> "Plot of Single Nucleotide Polymorphisms", 
 ChartLabels -> Placed[Style[#, Blue, 15] & /@ names, Center, 
                       Rotate[#, 90 Degree] &], ChartStyle -> "TemperatureMap", 
 ChartLegends -> names]

Mathematica graphics

share|improve this answer
    
thank you so much! That solves it! –  Qu0rk Feb 25 at 22:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.