Add new version in repository

This commit is contained in:
Ludovic CANDELLIER
2021-07-25 23:19:27 +02:00
parent f75632b054
commit b879f11c99
608 changed files with 12235 additions and 7513 deletions

View 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

View 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

View 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

View 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>

View 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>