Forum


Replies: 1   Views: 2866
Non-smooth linechart
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Samuel  · 23-02-2017 - 08:47

Hi,

By default, lineCharts are drawn with smooth lines, is there any way to change it?

This code:

$docx->addChart(array(
    'data'      => $chart_data,
    'type'      => 'lineChart',
    'sizeX'     => 16,
    'sizeY'     => 8,
    'legendPos' => 'b'
));

Generates something like this: http://imgur.com/a/NQP8v

What I need: http://imgur.com/a/cbyX5

Thanks