stren Report post Posted December 25, 2007 Hi - I'm using the setChartParams() call in the PHP API to create my XML. However, I have noticed that even if I set the lineColor attribute it gets ignored and comes back in the XML as the default color. I have also tried adding Params to the addDataFromDatabase() call. In that case I was setting the attribute 'color' but that did not seem to work either Has anyone else run into this problem? Thanks Share this post Link to post Share on other sites
FusionCharts Support Report post Posted December 26, 2007 Hi, Currently you can apply color to lines using addChartData() function in line charts. Try this code: <?php # Include FusionCharts PHP Class include('../Class/FusionCharts_Gen.php'); # Create Create Column3D chart Object $FC = new FusionCharts("Line","300","250"); # set the relative path of the swf file $FC->setSWFPath("../FusionCharts/"); # Set chart attributes $strParam="caption=Weekly Sales;xAxisName=Week;yAxisName=Revenue;numberPrefix=$;decimalPrecision=0;anchorBorderColor=ff0000"; $FC->setChartParams($strParam); # add chart values and category names $FC->addChartData("40800","name=Week 1;color=ff0000"); $FC->addChartData("31400","name=Week 2;color=ff0000"); $FC->addChartData("26700","name=Week 3;color=ff0000"); $FC->addChartData("54400","name=Week 4;color=ff0000"); ?> Share this post Link to post Share on other sites