- 
                Notifications
    You must be signed in to change notification settings 
- Fork 141
Open
Description
What Version?
3.1
Issue
Trendlines with ColumnChart doens't work.
Controller Code (chart creation code)
$lavaChart = Lava::ColumnChart($idChart, $datatable, [
    'title' => $title,
    'height' => 500,
    'chartArea' => [
    	'top' => 35,
    	'bottom' => 100,
    	'height' => '100%',
    ],
    'vAxis' => [
    	'format' => '0'
    ],
    'titlePosition' => 'none',
    'legend' => [
        'position' => 'bottom'
    ],
    'trendlines' => [ 
    	0 => [
	    'type' => 'exponential',
            'color' => 'green',
            'pointsVisible' => true,
            'pointSize' => 3,
            'lineWidth' => 10
        ] 
    ]
]);
View Code
$datatable = Lava::DataTable();
$datatable->addStringColumn('Total');
$datatable->addNumberColumn('Label');
foreach($records as $key => $item){
     $datatable->addRow([$key, $item]);
}
Metadata
Metadata
Assignees
Labels
No labels
