![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ledger.corals.io/resources/views/vendor/charts/material/multi/ |
<script type="text/javascript"> google.charts.load('current', {'packages':['bar']}) var {{ $model->id }}; google.charts.setOnLoadCallback(draw{{ $model->id }}) function draw{{ $model->id }}() { var data = google.visualization.arrayToDataTable([ [ '', @for ($i = 0; $i < count($model->datasets); $i++) "{{ $model->datasets[$i]['label'] }}", @endfor ], @for ($l = 0; $l < count($model->labels); $l++) [ "{{ $model->labels[$l] }}", @for ($i = 0; $i < count($model->datasets); $i++) {{ $model->datasets[$i]['values'][$l] }}, @endfor ], @endfor ]) var options = { chart: { @if($model->title) title: "{!! $model->title !!}", @endif }, @if($model->colors) colors: [ @foreach($model->colors as $c) "{{ $c }}", @endforeach ], @endif }; {{ $model->id }} = new google.charts.Bar(document.getElementById("{{ $model->id }}")) {{ $model->id }}.draw(data, options) } </script> @include('charts::_partials.container.div')