KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Add Trendlines to Google Charts #709

Closed Ahmed Bucheeri opened this topic on on Feb 26, 2019 - 2 comments

Ahmed Bucheeri commented on Feb 26, 2019

How can I add trendlines on google ColumnChart ?

Please refer forum #708

KoolReport commented on Feb 26, 2019

Here is example for trendlines. Trendline can apply to Scatter Charts, Bar Charts, Column Charts, and Line Charts in which both X and Y are number

<?php
ColumnChart::create(array(
    "dataSource"=>array(
        array("cat","amount"),
        array(1,3),
        array(2,8),
        array(3,10),
        array(4,15),
        array(5,18),
    ),
    "columns"=>array("cat","amount"),
    "options"=>array(
        "trendlines"=> array(
            0=>array()
        )
    )
));
?>
Ahmed Bucheeri commented on Feb 26, 2019

Thanks It works

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None