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,48 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'area2d',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
@if($model->colors)
'paletteColors': "{{ $model->colors[0] }}",
@endif
'bgColor': '#ffffff',
'borderAlpha': '20',
'canvasBorderAlpha': '0',
'usePlotGradientColor': '0',
'plotBorderAlpha': '10',
'rotatevalues': '0',
'showValues': '0',
'valueFontColor': '#ffffff',
'showXAxisLine': '1',
'xAxisLineColor': '#999999',
'divlineColor': '#999999',
'divLineIsDashed': '1',
'showAlternateHGridColor': '0',
'subcaptionFontBold': '0',
'subcaptionFontSize': '14'
},
'data': [
@for ($i = 0; $i < count($model->values); $i++)
{
'label': "{!! $model->labels[$i] !!}",
'value': {{ $model->values[$i] }},
},
@endfor
],
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,48 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'column2d',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
'paletteColors': '#0075c2',
'bgColor': '#ffffff',
'borderAlpha': '20',
'canvasBorderAlpha': '0',
'usePlotGradientColor': '0',
'plotBorderAlpha': '10',
'rotatevalues': '1',
'valueFontColor': '#ffffff',
'showXAxisLine': '1',
'xAxisLineColor': '#999999',
'divlineColor': '#999999',
'divLineIsDashed': '1',
'showAlternateHGridColor': '0',
'subcaptionFontBold': '0',
'subcaptionFontSize': '14'
},
'data': [
@for ($i = 0; $i < count($model->values); $i++)
{
'label': "{!! $model->labels[$i] !!}",
'value': {{ $model->values[$i] }},
@if($model->colors)
'color': "{{ $model->colors[$i] }}",
@endif
},
@endfor
],
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,59 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'doughnut2d',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
'paletteColors': '#0075c2',
'bgColor': '#ffffff',
'showBorder': '0',
'use3DLighting': '0',
'showShadow': '0',
'enableSmartLabels': '1',
'startingAngle': '0',
'showPercentValues': '1',
'showPercentInTooltip': '0',
'decimals': '1',
'captionFontSize': '14',
'subcaptionFontSize': '14',
'subcaptionFontBold': '0',
'toolTipColor': '#ffffff',
'toolTipBorderThickness': '0',
'toolTipBgColor': '#000000',
'toolTipBgAlpha': '80',
'toolTipBorderRadius': '2',
'toolTipPadding': '5',
'showHoverEffect':'1',
'showLegend': '1',
'legendBgColor': '#ffffff',
'legendBorderAlpha': '0',
'legendShadow': '0',
'legendItemFontSize': '10',
'legendItemFontColor': '#666666'
},
'data': [
@for ($i = 0; $i < count($model->values); $i++)
{
'label': "{!! $model->labels[$i] !!}",
'value': {{ $model->values[$i] }},
@if($model->colors)
'color': "{{ $model->colors[$i] }}",
@endif
},
@endfor
],
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,47 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'line',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
@if($model->colors)
'paletteColors': "{{ $model->colors[0] }}",
@endif
'bgColor': '#ffffff',
'borderAlpha': '20',
'canvasBorderAlpha': '0',
'usePlotGradientColor': '0',
'plotBorderAlpha': '10',
'rotatevalues': '1',
'valueFontColor': '#ffffff',
'showXAxisLine': '1',
'xAxisLineColor': '#999999',
'divlineColor': '#999999',
'divLineIsDashed': '1',
'showAlternateHGridColor': '0',
'subcaptionFontBold': '0',
'subcaptionFontSize': '14'
},
'data': [
@for ($i = 0; $i < count($model->values); $i++)
{
'label': "{!! $model->labels[$i] !!}",
'value': {{ $model->values[$i] }},
},
@endfor
],
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,63 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'msarea',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
'bgColor': '#ffffff',
'borderAlpha': '20',
'canvasBorderAlpha': '0',
'usePlotGradientColor': '0',
'plotBorderAlpha': '10',
'showValues': '0',
'showValues': '0',
'valueFontColor': '#ffffff',
'showXAxisLine': '1',
'xAxisLineColor': '#999999',
'divlineColor': '#999999',
'divLineIsDashed': '1',
'showAlternateHGridColor': '0',
'subcaptionFontBold': '0',
'subcaptionFontSize': '14'
},
'categories': [{
'category': [
@foreach($model->labels as $l)
{
'label': "{{ $l }}",
},
@endforeach
]
}],
'dataset': [
@for ($i = 0; $i < count($model->datasets); $i++)
{
'seriesname': "{{ $model->datasets[$i]['label'] }}",
@if($model->colors and count($model->colors) > $i)
'color': "{{ $model->colors[$i] }}",
@endif
'data': [
@foreach($model->datasets[$i]['values'] as $v)
{
'value': {{ $v }}
},
@endforeach
]
},
@endfor
]
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,62 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'mscolumn2d',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
'bgColor': '#ffffff',
'borderAlpha': '20',
'canvasBorderAlpha': '0',
'usePlotGradientColor': '0',
'plotBorderAlpha': '10',
'rotatevalues': '1',
'valueFontColor': '#ffffff',
'showXAxisLine': '1',
'xAxisLineColor': '#999999',
'divlineColor': '#999999',
'divLineIsDashed': '1',
'showAlternateHGridColor': '0',
'subcaptionFontBold': '0',
'subcaptionFontSize': '14'
},
'categories': [{
'category': [
@foreach($model->labels as $l)
{
'label': "{{ $l }}",
},
@endforeach
]
}],
'dataset': [
@for ($i = 0; $i < count($model->datasets); $i++)
{
'seriesname': "{{ $model->datasets[$i]['label'] }}",
@if($model->colors and count($model->colors) > $i)
'color': "{{ $model->colors[$i] }}",
@endif
'data': [
@foreach($model->datasets[$i]['values'] as $v)
{
'value': {{ $v }}
},
@endforeach
]
},
@endfor
]
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,62 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'msline',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
'bgColor': '#ffffff',
'borderAlpha': '20',
'canvasBorderAlpha': '0',
'usePlotGradientColor': '0',
'plotBorderAlpha': '10',
'rotatevalues': '1',
'valueFontColor': '#ffffff',
'showXAxisLine': '1',
'xAxisLineColor': '#999999',
'divlineColor': '#999999',
'divLineIsDashed': '1',
'showAlternateHGridColor': '0',
'subcaptionFontBold': '0',
'subcaptionFontSize': '14'
},
'categories': [{
'category': [
@foreach($model->labels as $l)
{
'label': "{{ $l }}",
},
@endforeach
]
}],
'dataset': [
@for ($i = 0; $i < count($model->datasets); $i++)
{
'seriesname': "{{ $model->datasets[$i]['label'] }}",
@if($model->colors and count($model->colors) > $i)
'color': "{{ $model->colors[$i] }}",
@endif
'data': [
@foreach($model->datasets[$i]['values'] as $v)
{
'value': {{ $v }}
},
@endforeach
]
},
@endfor
]
}
}).render()
});
</script>
@include('charts::_partials.container.div')

View File

@@ -0,0 +1,59 @@
<script type="text/javascript">
FusionCharts.ready(function () {
var {{ $model->id }} = new FusionCharts({
type: 'pie2d',
renderAt: "{{ $model->id }}",
@include('charts::_partials.dimension.js')
dataFormat: 'json',
dataSource: {
'chart': {
"exportenabled": "1",
"exportatclient": "1",
@if($model->title)
'caption': "{!! $model->title !!}",
@endif
'yAxisName': "{!! $model->element_label !!}",
'paletteColors': '#0075c2',
'bgColor': '#ffffff',
'showBorder': '0',
'use3DLighting': '0',
'showShadow': '0',
'enableSmartLabels': '1',
'startingAngle': '0',
'showPercentValues': '1',
'showPercentInTooltip': '0',
'decimals': '1',
'captionFontSize': '14',
'subcaptionFontSize': '14',
'subcaptionFontBold': '0',
'toolTipColor': '#ffffff',
'toolTipBorderThickness': '0',
'toolTipBgColor': '#000000',
'toolTipBgAlpha': '80',
'toolTipBorderRadius': '2',
'toolTipPadding': '5',
'showHoverEffect':'1',
'showLegend': '1',
'legendBgColor': '#ffffff',
'legendBorderAlpha': '0',
'legendShadow': '0',
'legendItemFontSize': '10',
'legendItemFontColor': '#666666'
},
'data': [
@for($i = 0; $i < count($model->values); $i++)
{
'label': "{!! $model->labels[$i] !!}",
'value': {{ $model->values[$i] }},
@if($model->colors)
'color': "{{ $model->colors[$i] }}",
@endif
},
@endfor
],
}
}).render()
});
</script>
@include('charts::_partials.container.div')