4
$\begingroup$

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.

$\endgroup$
6
  • 1
    $\begingroup$ Please include code for easy testing. $\endgroup$
    – Mr.Wizard
    Commented Oct 6, 2012 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$ Commented Oct 6, 2012 at 1:22
  • $\begingroup$ BaseStyle -> Thick etc. will do it. $\endgroup$ Commented Oct 6, 2012 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$ Commented Oct 6, 2012 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$ Commented Oct 6, 2012 at 1:33

1 Answer 1

4
$\begingroup$

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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