Displaying chart values as a numbers, not as percentages.
mohitlandge opened this issue · 1 comments
mohitlandge commented
$lava = new Lavacharts;
$Popularity = $lava->DataTable();
$Popularity->addStringColumn('Country')
->addNumberColumn('Popularity')
->addRow(['Ontime',
$count['ontime_percent']
])
->addRow(['Delayed',
$count['delayed_percent']
])
->addRow(['Incompleted',
$count['incomplete_percent']
]);
$lava->DonutChart('Popularity', $Popularity, [
'is3D' => false,
'height' => 350,
'width' => 450,
'legend' => ['layout' => 'vertical', 'align' => 'left', 'verticalAlign' => 'middle', 'itemMarginTop' => 100,'itemMarginBottom' => 10,],,
'pieHole' => 0.4
]);
$chartTemplate = View::make('vnnogile::dash.lavacharts', ['lava' => $lava, "id" => "timely_completion_chart", 'hideNewBtn' => true])->render();
kevinkhill commented
I'm not sure what you are doing with this line
$chartTemplate = View::make('vnnogile::dash.lavacharts', ['lava' => $lava, "id" => "timely_completion_chart", 'hideNewBtn' => true])->render();