Hi AlanWhooley,
For your case, I think a stacked bar chart is the easier option. The code is like:
my $layer = $c->addBarLayer2($perlchartdir::Stack);
$layer->setBarGap($perlchartdir::TouchBar); // no gap between bars
$layer->setBorderColor($perlchartdir::SameAsMainColor); // no bar border
$layer->addDataSet($myData0, $myColor0, $name0);
$layer->addDataSet($myData1, $myColor1, $name1);
$layer->addDataSet($myData2, $myColor2, $name2);
Hope this can help.
Regards
Peter Kwan |