scopdrag / laravel-google-chart

This package offers simple and easy integration of google charts with laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add Column Chart in this API

kaushikandani opened this issue · comments

I tried to add new chart - Column chart
also create blade file for that
below is my blade file code
but its generate Bar chart instead of Column chart

@include('LaravelGoogleChart::includes.package_loader')

<script type="text/javascript"> google.charts.setOnLoadCallback(function() { var data = google.visualization.arrayToDataTable({!!json_encode($data)!!}); var options = {!! json_encode($options) !!}; var material = new google.visualization.ColumnChart(document.getElementById('chart_{!! $id !!}')); material.draw(data, options); }); </script>

Please help to how to add more google chart in this API,

Thanks,
Kaushik