Re: combine drawSplineChart and drawFilledSplineChart in a c
Hi,
Yes, it is possible: the idea is to define the series :
Code:
$MyData->addPoints(array(30,24,32),"This year");
$MyData->addPoints(array(28,20,27),"Last year");
Then hide one serie and draw a 1st chart :
Code:
$MyData->setSerieDrawable("Last year",FALSE);
$myPicture->drawFilledSplineChart();
Then hide the 1st serie and re-activate the second one :
Code:
$MyData->setSerieDrawable("This year",FALSE);
$MyData->setSerieDrawable("Last year",TRUE);
$myPicture->drawSplineChart();
You can find an example here :
http://wiki.pchart.net/doc.combo.charts.html.
There is no option to add some extra spacing between the axis values and the axis name, I'll add this to the todo list.
Kind regards,
JD.