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.

Is there a named option that controls the thickness of the line segments that appear in BarChart with options ChartLayout -> "Stacked", Joined->True? It is not EdgeForm, since ChartBaseStyle -> EdgeForm[None] is the value set in the following example:

enter image description here

It's unclear what Directive can be passed. Changing Thickness value in ChartBaseStyle -> {Thickness[0.0001], EdgeForm[None]} has no effect for example.

share|improve this question
1  
Please include code for easy testing. –  Mr.Wizard Oct 6 '12 at 1:20
    
@Mr.Wizard, I'll try do refactor the code, but as it is it's mixed in with data transforms on external data sets, it would be a mess to include it all. You can probably generate a random matrix and just set the Option values mentioned in the post. –  alancalvitti Oct 6 '12 at 1:22
    
BaseStyle -> Thick etc. will do it. –  Mike Honeychurch Oct 6 '12 at 1:26
    
@MikeHoneychurch, thank you that works. Will accept if you post as an answer. It's even possible to specify Thickness numerically: BaseStyle -> Directive[Thickness[0.001]]. However the Color disappears.. . curious why this Option is segregated in BaseStyle, not in ChartBaseStyle` –  alancalvitti Oct 6 '12 at 1:30
    
Actually I commented before testing -- always a bad move. BaseStyle -> AbsoluteThickness[5] works but messes up ticks. So you might have to explicitly specify a tick style to overcome that. –  Mike Honeychurch Oct 6 '12 at 1:33

1 Answer 1

up vote 3 down vote accepted

Following suggestions from Mike Honeychurch,

 BarChart[{Range[1, 3], Range[6, 8], Range[4, 6]}, Joined -> True, 
 ChartLayout -> "Stacked", BaseStyle -> AbsoluteThickness[3], 
 Ticks -> {None, Automatic}]

stacked

share|improve this answer
    
Ok if you're going to blatantly take Honeychurch's votes... –  alancalvitti Oct 6 '12 at 19:31
    
@alancalvitti I don't receive votes for a community wiki. –  David Carraher Oct 6 '12 at 19:38
    
ok, didn't realize - was joken anyway –  alancalvitti Oct 6 '12 at 19:39
    
Just returning to this today over breakfast and would still be nice to be able to retain the tick marks but to exclude them from the effects applied to the joined line. For some reason TicksStyle is not working for these x axis tick marks (group divider ticks -- whatever they are called). It might be something Brett Champion can help with. –  Mike Honeychurch Oct 6 '12 at 23:08
    
Yes. I used None because I didn't see the point of the ticks. But now that you mention it, it may be worth taking a look at Absolute Options. –  David Carraher Oct 7 '12 at 0:09

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.