0
$\begingroup$

I use the command:

BarChart[{1, 2, 3}, ChartLegends -> {"a", "b", "c"}, 
 ChartStyle -> {Blue, Red, Black}, ChartLayout -> "Stacked", 
 ChartElementFunction -> "GlassRectangle"]

But the result is that the black bin comes out gray:

enter image description here

Using RGBColor or Lighter/Darker did not help. The "GlassRectangle" look is very appealing but I do need it to be black or at least much darker. Any ideas? Many thanks, Dan

$\endgroup$
  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ – user9660 Mar 26 '15 at 16:50
  • $\begingroup$ I get a black bar with Mathematica 10.0.2 under Win 7. $\endgroup$ – Karsten 7. Mar 26 '15 at 17:02
  • $\begingroup$ Works as as expected with 10.0.2.0 for Mac OS X x86 (64-bit) (December 4, 2014). $\endgroup$ – user9660 Mar 26 '15 at 17:59
  • $\begingroup$ Works as expected: 10.0.0.0, Windows 8.1 x86-64. $\endgroup$ – 2012rcampion Apr 25 '15 at 20:19
  • 2
    $\begingroup$ I'm voting to close this question as off-topic because the problem can't be reproduced by others and the OP doesn't provide the version of OS and Mathematica used. $\endgroup$ – Karsten 7. Jul 24 '15 at 19:27
1
$\begingroup$

On my computer Windows 7, Mathematica 9, your code renders a perfectly black bar! To understand if problem may be OS or Mathematica version related, please specify OS and Mathematica version.

Result of your code on my computer

| improve this answer | |
$\endgroup$
  • $\begingroup$ Perfect in Mathematica version 10.1 on a Mac Pro running OS X. $\endgroup$ – David G. Stork May 25 '15 at 18:30

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