New Controllers added. Added Charts

This commit is contained in:
2017-09-19 22:01:00 +02:00
parent ccc5b07ddf
commit 930311b550
400 changed files with 30686 additions and 8 deletions

View File

@@ -0,0 +1,49 @@
@if(!$model->customId)
@include('charts::_partials.container.div')
@endif
<script>
var {{ $model->id }} = AmCharts.makeChart( "{{ $model->id }}", {
"type": "serial",
"theme": "light",
"dataProvider": [
@foreach($model->values as $v)
{
"country": "{{ $model->labels[$loop->index] }}",
"visits": {{ $v }}
},
@endforeach
],
"valueAxes": [
{
"minimum": 0,
"title": "{!! $model->element_label !!}",
}
],
"gridAboveGraphs": true,
"startDuration": 1,
"graphs": [ {
"balloonText": "[[category]]: <b>[[value]]</b>",
"fillAlphas": 0.8,
"lineAlpha": 0.2,
"type": "column",
"valueField": "{!! $model->element_label !!}"
} ],
"chartCursor": {
"categoryBalloonEnabled": false,
"cursorAlpha": 0,
"zoomable": false
},
"categoryField": "country",
"categoryAxis": {
"gridPosition": "start",
"gridAlpha": 0,
"tickPosition": "start",
"tickLength": 20
},
"export": {
"enabled": true
}
} );
</script>