Skip to content

Getting a chart as an image 3.1.x

Kevin Hill edited this page Aug 29, 2017 · 4 revisions

You can use the new png option when building your chart. Just include the png => true option as such:

$lava->LineChart('MyChart', $myDataTable, [
    'png' => true
]);

Note

Not all charts support PNG output, so a browse through the chart classes, such as AreaCharts will show if they use \Khill\Lavacharts\Support\Traits\PngRenderableTrait