ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  addBoxWhiskerLayer different color for each line and no vertical line
Posted by Donavon on May-17-2016 01:29
Hello Peter,

I am trying to create a addBoxWhiskerLayer in perl.

I would like to have a different color for each line level (one color for max, one color for mid and one color for min) and build a legend with the colors.  Also I would like to remove the vertical line.

Here is what I have.  I have tried a few different things with no luck.

my $maxData = [ 3,6,12 ];
my $midData  = [ 2,4,8 ];
my $minData  = [ 1,2,4 ];

my $markLayer = $c->addBoxWhiskerLayer(undef, undef, $maxData, $midData, $minData, '', '', '');
$markLayer->setLineWidth(2);
$markLayer->setDataGap(0.1);


Thank You,
~Donavon

  Re: addBoxWhiskerLayer different color for each line and no vertical line
Posted by Peter Kwan on May-17-2016 04:31
Hi Donavon,

May be you can use:

$c->addBoxWhiskerLayer(undef, undef, undef, $maxData, undef, $perlchartdir::Transparent, 0xff0000, 0xff0000);

$c->addBoxWhiskerLayer(undef, undef, undef, $midData, undef, $perlchartdir::Transparent, 0x00ff00, 0x00ff00);

$c->addBoxWhiskerLayer(undef, undef, undef, $minData, undef, $perlchartdir::Transparent, 0x0000ff, 0x0000ff);

For the legend box, you can add the keys using LegendBox.addKey, like:

my $legendBox = $c->addLegend(.....);

$legendBox->addKey("My Legend", 0xff0000, 2);
......


Hope this can help.

Regards
Peter Kwan

  Re: addBoxWhiskerLayer different color for each line and no vertical line
Posted by Donavon on May-17-2016 04:49
Thank You...