|
Different thickness of the min/max from the joining lines of boxwhisker |
Posted by at on Oct-19-2015 18:04 |
|
Hi Peter, is it possible for the thickness of the min/max lines of the boxwhisker to be different from its joining
lines, i.e. I want to thicken the min and max lines (value of 2) while the joining lines only set to 1?
Thanks. |
Re: Different thickness of the min/max from the joining lines of boxwhisker |
Posted by Peter Kwan on Oct-20-2015 04:49 |
|
Hi at,
You can try to add the min, max and the vertical joining line in three layers. In this way,
you can configure their thickness independently. For example:
$c->addBoxWhiskerLayer(null, null, null, null, $Q0Data, 0x9999ff, 0x0000cc)-
>setLineWidth(3);
$c->addBoxWhiskerLayer(null, null, null, null, $Q4Data, 0x9999ff, 0x0000cc)-
>setLineWidth(3);
$c->addBoxWhiskerLayer(null, null, $Q0Data, $Q4Data, null, 0x9999ff, 0x0000cc);
Hope this can help.
Regards
Peter Kwan |
Re: Different thickness of the min/max from the joining lines of boxwhisker |
Posted by at on Oct-21-2015 11:25 |
|
Hi Peter, it worked, thanks. Would it be possible also to changed their widths? I want that the min and max lines to
be shorter than the width of the lower and upper quartile e.g the box.
Thanks. |
Re: Different thickness of the min/max from the joining lines of boxwhisker |
Posted by Peter Kwan on Oct-21-2015 23:26 |
|
Hi at,
Yes, you can use BaseBoxLayer.setDataWidth or BaseBoxLayer.setDataGap to configure the
width for the layers for the max and min lines. For example:
#layer for the min line
$myLayer = $c->addBoxWhiskerLayer(null, null, null, null, $Q0Data, 0x9999ff, 0x0000cc);
$myLayer->setLineWidth(3);
$myLayer->setDataGap(0.5);
Hope this can help.
Regards
Peter Kwan |
|