pChart 2.x forum
http://wiki.pchart.net/forum/

Problem - setSerieWeight doesn't seem to work
http://wiki.pchart.net/forum/viewtopic.php?f=1&t=2304
Page 1 of 1

Author:  psyclo [ Thu Dec 15, 2011 9:36 pm ]
Post subject:  Problem - setSerieWeight doesn't seem to work

I've got a linechart and I need thicker lines. I use the setSerieWeight() method, but it isn't working. All series are still 1px. Here is the section of code.
$MyData = new pData();
$MyData->addPoints("Current Year", $cyArr);
$MyData->setSerieWeight("Current Year", 5);
$MyData->setAxisName(0,$yLblTxt);
$MyData->addPoints($lblArr,"Labels");
$MyData->setAbscissa("Labels");
$MyData->setAxisDisplay(0, AXIS_FORMAT_METRIC);
$myPicture = new pImage(750, 250, $MyData);
$myPicture->drawLineChart(array("DisplayValues"=>FALSE,"DisplayColor"=>DISPLAY_AUTO,"Surrounding"=>60));

I'm not sure what is going wrong.

Thanks for any help.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/