| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <script src="http://code.highcharts.com/highcharts.js"></script>
- <script src="http://code.highcharts.com/maps/modules/map.js"></script>
- <script src="http://code.highcharts.com/maps/modules/exporting.js"></script>
- <script src="http://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
- <?php
- $getUptName = \App\Model\Setting\UPT::where('office_id',$changeUPT)->select('office_name')->distinct()->value('office_name');
- ?>
- <script>
- Highcharts.chart('inspeksi-kegiatan-search', {
- chart: {
- type: 'bar'
- },
- title:false,
- xAxis: {
- categories: [
- '{{$getUptName}}',
- ],
- title: {
- text: null
- }
- },
- yAxis: {
- min: 0,
- title: {
- text: 'Population (millions)',
- align: 'high'
- },
- labels: {
- overflow: 'justify'
- }
- },
- tooltip: {
- valueSuffix: ' millions'
- },
- plotOptions: {
- bar: {
- dataLabels: {
- enabled: true
- }
- }
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'top',
- x: -40,
- y: 80,
- floating: true,
- borderWidth: 1,
- backgroundColor:
- Highcharts.defaultOptions.legend.backgroundColor || '#000',
- shadow: true
- },
- credits: {
- enabled: false
- },
- series: [
- {
- name: 'Total Kegiatan Inspeksi',
- data: [
- {{\App\Model\Inspeksi\Inspeksi::where('kode_upt',$changeUPT)->count()}},
- ]
- },
- ]
- });
- </script>
- <script>
- Highcharts.chart('inspeksi-hasil-search', {
- chart: {
- type: 'bar'
- },
- title:false,
- xAxis: {
- categories: [
- '{{$getUptName}}',
- ],
- title: {
- text: null
- }
- },
- yAxis: {
- min: 0,
- title: {
- text: 'Population (millions)',
- align: 'high'
- },
- labels: {
- overflow: 'justify'
- }
- },
- tooltip: {
- valueSuffix: ' millions'
- },
- plotOptions: {
- bar: {
- dataLabels: {
- enabled: true
- }
- }
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'top',
- x: -40,
- y: 80,
- floating: true,
- borderWidth: 1,
- backgroundColor:
- Highcharts.defaultOptions.legend.backgroundColor || '#000',
- shadow: true
- },
- credits: {
- enabled: false
- },
- series: [
- {
- name: 'Berdasarkan Capaian Hasil',
- data: [
- {{number_format($capaian, 2)}},
- ]
- },
- ]
- });
- </script>
|