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.

  • 1
    $\begingroup$ Please include code for easy testing. $\endgroup$ – Mr.Wizard Oct 6 '12 at 1:20
  • $\begingroup$ @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. $\endgroup$ – alancalvitti Oct 6 '12 at 1:22
  • $\begingroup$ BaseStyle -> Thick etc. will do it. $\endgroup$ – Mike Honeychurch Oct 6 '12 at 1:26
  • $\begingroup$ @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` $\endgroup$ – alancalvitti Oct 6 '12 at 1:30
  • $\begingroup$ 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. $\endgroup$ – Mike Honeychurch Oct 6 '12 at 1:33

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}]


| improve this answer | |
  • $\begingroup$ Ok if you're going to blatantly take Honeychurch's votes... $\endgroup$ – alancalvitti Oct 6 '12 at 19:31
  • $\begingroup$ @alancalvitti I don't receive votes for a community wiki. $\endgroup$ – DavidC Oct 6 '12 at 19:38
  • $\begingroup$ ok, didn't realize - was joken anyway $\endgroup$ – alancalvitti Oct 6 '12 at 19:39
  • $\begingroup$ 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. $\endgroup$ – Mike Honeychurch Oct 6 '12 at 23:08
  • $\begingroup$ 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. $\endgroup$ – DavidC Oct 7 '12 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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