I am generating a line chart using the example from Github library.
What i want to have is the option to set few custom styles for each of the lines in the chart, as we do manually in the excel sheet like:
Select Line in the chart, Format Data Series, then:
- Marker Options > None
- Line Style > Width > 2.5pt (1pt is default)
- Line Style > Smoothed line
How can i set the above three options for the lines generated in the line chart? So far, here is my code to set the layout and data series for the chart:
$series = new PHPExcel_Chart_DataSeries(
PHPExcel_Chart_DataSeries::TYPE_LINECHART,
PHPExcel_Chart_DataSeries::GROUPING_STANDARD,
range(0, count($dataSeriesValues)-1),
$dataseriesLabels,
$xAxisTickValues,
$dataSeriesValues
);
$layout1 = new PHPExcel_Chart_Layout();
$layout1->setShowVal(TRUE);
$plotarea = new PHPExcel_Chart_PlotArea($layout1, array($series));
Can someone provide a hint, as i can't find it in the example.