Add new version in repository
This commit is contained in:
6
resources/views/load/chart/chartjs.blade.php
Normal file
6
resources/views/load/chart/chartjs.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
@if(!defined('LOAD_CHARTJS'))
|
||||
@push('scripts')
|
||||
<script src="{{ asset('/assets/plugins/chartjs/Chart.min.js') }}" charset="utf-8"></script>
|
||||
@endpush
|
||||
@php(define('LOAD_CHARTJS', true))
|
||||
@endif
|
||||
14
resources/views/load/chart/highcharts.blade.php
Normal file
14
resources/views/load/chart/highcharts.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@if(!defined('LOAD_HIGHCHARTS'))
|
||||
@push('css')
|
||||
|
||||
@endpush
|
||||
@push('scripts')
|
||||
<script src="{{ asset('/assets/plugins/highcharts/highcharts.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/highcharts-more.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/modules/series-label.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/modules/exporting.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/modules/export-data.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/modules/accessibility.js') }}"></script>
|
||||
@endpush
|
||||
@php(define('LOAD_HIGHCHARTS', true))
|
||||
@endif
|
||||
10
resources/views/load/chart/highmaps.blade.php
Normal file
10
resources/views/load/chart/highmaps.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
@if(!defined('LOAD_HIGHMAPS'))
|
||||
@push('scripts')
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.15/proj4.js"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/highmaps.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/modules/exporting.js') }}"></script>
|
||||
<script src="{{ asset('/assets/plugins/highcharts/modules/data.js') }}"></script>
|
||||
<script src="/assets/plugins/highcharts/map/{{ $map }}.js"></script>
|
||||
@endpush
|
||||
@php(define('LOAD_HIGHMAPS', true))
|
||||
@endif
|
||||
84
resources/views/load/chart/maps.blade.php
Normal file
84
resources/views/load/chart/maps.blade.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<script type="text/javascript">
|
||||
Highcharts.mapChart({
|
||||
chart: {
|
||||
"renderTo":"map1",
|
||||
"backgroundColor":"rgba(14,14,15,0.8)",
|
||||
"map":"custom/world",
|
||||
spacingBottom: 20,
|
||||
events: {
|
||||
load: function(){
|
||||
console.log(this);
|
||||
// this.get('fr').zoomTo();
|
||||
this.mapZoom(0.3);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
title: {
|
||||
"text":"fact_files",
|
||||
"style":{
|
||||
"color":"#FFF",
|
||||
"fontFamily":"Roboto Condensed"
|
||||
}
|
||||
},
|
||||
|
||||
legend: {
|
||||
"enabled": false
|
||||
},
|
||||
|
||||
series: [{
|
||||
"name":"Country",
|
||||
"data": [
|
||||
{
|
||||
'code': 'lu',
|
||||
'value': 1
|
||||
},
|
||||
{
|
||||
'code': 'ch',
|
||||
'value': 1
|
||||
},
|
||||
{
|
||||
'code': 'fr',
|
||||
'value': 10
|
||||
},
|
||||
{
|
||||
'code': 'de',
|
||||
'value': 1
|
||||
},
|
||||
{
|
||||
'code': 'es',
|
||||
'value': 1
|
||||
}
|
||||
],
|
||||
joinBy: ['hc-key', 'code'],
|
||||
dataLabels: {
|
||||
enabled: true,
|
||||
color: '#FFFFFF',
|
||||
formatter: function () {
|
||||
if (this.point.value) {
|
||||
return this.point.name;
|
||||
}
|
||||
}
|
||||
},
|
||||
tooltip: {
|
||||
headerFormat: '',
|
||||
pointFormat: '{point.name}'
|
||||
},
|
||||
point: {
|
||||
events: {
|
||||
click: pointClick
|
||||
}
|
||||
},
|
||||
}],
|
||||
|
||||
mapNavigation: {
|
||||
"enabled":true,
|
||||
"enableButtons":true
|
||||
},
|
||||
|
||||
credits: {
|
||||
"enabled":false
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
35
resources/views/load/chart/maps.js
Normal file
35
resources/views/load/chart/maps.js
Normal file
@@ -0,0 +1,35 @@
|
||||
<script>
|
||||
// Instantiate the map
|
||||
var mapChart = Highcharts.mapChart('map1', {
|
||||
chart: {
|
||||
map: 'custom/world',
|
||||
spacingBottom: 20,
|
||||
backgroundColor:"rgba(14,14,15,0.8)",
|
||||
events: {
|
||||
load: function(){
|
||||
console.log(this);
|
||||
// this.get('fr').zoomTo();
|
||||
this.mapZoom(0.3);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
title: {
|
||||
text: 'Fact Files'
|
||||
},
|
||||
|
||||
legend: {
|
||||
enabled: false
|
||||
},
|
||||
|
||||
credits: {
|
||||
enabled: false
|
||||
},
|
||||
|
||||
mapNavigation: {
|
||||
enabled: true,
|
||||
enableButtons: true,
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user