| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <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>
- <script>
- Highcharts.chart('chart1', {
- chart: {
- type: 'bar'
- },
- xAxis: {
- categories: ['Africa', 'America', 'Asia', 'Europe', 'Oceania'],
- 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: 'Year 1800',
- data: [107, 31, 635, 203, 2]
- }]
- });
- </script>
- <script>
- Highcharts.chart('chart2', {
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- title:false,
- tooltip: {
- pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
- },
- plotOptions: {
- pie: {
- size:'70%',
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.percentage:.1f} %'
- }
- }
- },
- series: [{
- name: 'Brands',
- colorByPoint: true,
- data: [{
- name: 'Chrome',
- y: 61.41,
- sliced: true,
- selected: true
- }, {
- name: 'Internet Explorer',
- y: 11.84
- }, {
- name: 'Firefox',
- y: 10.85
- }, {
- name: 'Edge',
- y: 4.67
- }, {
- name: 'Safari',
- y: 4.18
- }, {
- name: 'Sogou Explorer',
- y: 1.64
- }, {
- name: 'Opera',
- y: 1.6
- }, {
- name: 'QQ',
- y: 1.2
- }, {
- name: 'Other',
- y: 2.61
- }]
- }]
- });
- </script>
- <script>
- Highcharts.chart('chart3', {
- chart: {
- type: 'bar'
- },
- title:false,
- xAxis: {
- categories: ['Aceh', 'Lampung', 'Jakarta', 'Bandung', 'Bali'],
- title: {
- text: null
- }
- },
- yAxis: {
- min: 0,
- title: {
- text: 'UPT',
- align: 'high'
- },
- labels: {
- overflow: 'justify'
- }
- },
- tooltip: {
- valueSuffix: ' Jumlah'
- },
- 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 || '#FFFFFF',
- shadow: true
- },
- credits: {
- enabled: false
- },
- series: [{
- name: 'Tahun 2017',
- data: [107, 31, 635, 203, 2]
- }, {
- name: 'Tahun 2018',
- data: [133, 156, 947, 408, 6]
- }, {
- name: 'Tahun 2019',
- data: [814, 841, 3714, 727, 31]
- }, {
- name: 'Tahun 2020',
- data: [1216, 1001, 4436, 738, 40]
- }]
- });
- </script>
- <script>
- Highcharts.chart('bahansosialisasi-operator', {
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- title:false,
- tooltip: {
- pointFormat: '{series.name}: <b>{point.y}</b>'
- },
- plotOptions: {
- pie: {
- size:'70%',
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.y}'
- }
- }
- },
- <?php
- $materi = \App\Model\Refrension\Materi::all();
- ?>
- series: [{
- name: 'Brands',
- colorByPoint: true,
- data: [
- @foreach($materi as $key => $value)
- {
- name: '{{$value->jenis_materi}}',
- y: {{\App\Model\SosialisasiBimtek\BahanSosialisasi::where('id_materi',$value->id)->where('kode_upt',Auth::user()->id_upt)->count()}}
- },
- @endforeach
- ]
- }]
- });
- </script>
- <script>
- Highcharts.chart('bahansosialisasi-admin', {
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- title:false,
- tooltip: {
- pointFormat: '{series.name}: <b>{point.y}</b>'
- },
- plotOptions: {
- pie: {
- size:'70%',
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.y}'
- }
- }
- },
- <?php
- $materi = \App\Model\Refrension\Materi::all();
- ?>
- series: [{
- name: 'Brands',
- colorByPoint: true,
- data: [
- @foreach($materi as $key => $value)
- {
- name: '{{$value->materi}}',
- y: {{\App\Model\SosialisasiBimtek\BahanSosialisasi::where('id_materi',$value->id)->count()}}
- },
- @endforeach
- ]
- }]
- });
- </script>
- <script>
- Highcharts.chart('bahansosialisasi-admin2', {
- chart: {
- type: 'bar'
- },
- title:false,
- <?php
- $upt = \App\Model\Setting\UPT::distinct('office_id')->get();
- ?>
- xAxis: {
- categories: [
- @foreach($upt as $key => $value)
- '{{$value->office_name}}',
- @endforeach
- ],
- title: {
- text: null
- }
- },
- yAxis: {
- min: 0,
- title: {
- text: 'UPT',
- align: 'high'
- },
- labels: {
- overflow: 'justify'
- }
- },
- tooltip: {
- valueSuffix: ' Jumlah'
- },
- 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 || '#FFFFFF',
- shadow: true
- },
- credits: {
- enabled: false
- },
- series: [
- {
- name: 'Teraslisasi',
- data: [
- @foreach($upt as $key => $value)
- {{\App\Model\SosialisasiBimtek\BahanSosialisasi::where('status',0)->where('kode_upt',$value->office_id)->count()}},
- @endforeach
- ]
- }, {
- name: 'Belum Teraslisasi',
- data: [
- @foreach($upt as $key => $value)
- {{\App\Model\SosialisasiBimtek\BahanSosialisasi::where('status',1)->where('kode_upt',$value->office_id)->count()}},
- @endforeach
- ]
- },
- ]
- });
- </script>
- <script type="text/javascript">
- var map = am4core.create("chartdiv", am4maps.MapChart);
- </script>
|