I am trying to create a trendline for a column chart
select 'dbr.chart.options', 'chartdirector', '$trendLayerObj = $c->addTrendLayer($layer->getDataSet(1), 0x008000, "Trend Line");$trendLayerObj->setLineWidth(2);';
I've tried multiple things, but the addTrendLayer function expects an array of data as the first parameter - see here http://www.advsofteng.com/doc/cdperldoc/trendline.htm
I can access the $c chart object, and the $layer object, however, how can I access the resultset (the data) for chartdirector.
I hope the above is clear enough.