New Controllers added. Added Charts
This commit is contained in:
25
Laravel/resources/views/vendor/charts/chartist/area.blade.php
vendored
Normal file
25
Laravel/resources/views/vendor/charts/chartist/area.blade.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
[
|
||||
@foreach($model->values as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
var options = {
|
||||
showArea: true,
|
||||
@include('charts::_partials.dimension.js')
|
||||
};
|
||||
|
||||
new Chartist.Line('#{{ $model->id }}', data, options);
|
||||
</script>
|
22
Laravel/resources/views/vendor/charts/chartist/bar.blade.php
vendored
Normal file
22
Laravel/resources/views/vendor/charts/chartist/bar.blade.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
[
|
||||
@foreach($model->values as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
var options = { @include('charts::_partials.dimension.js') }
|
||||
|
||||
new Chartist.Bar('#{{ $model->id }}', data, options);
|
||||
</script>
|
26
Laravel/resources/views/vendor/charts/chartist/donut.blade.php
vendored
Normal file
26
Laravel/resources/views/vendor/charts/chartist/donut.blade.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
@foreach($model->values as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
]
|
||||
};
|
||||
|
||||
var options = {
|
||||
donut: true,
|
||||
labelOffset: 50,
|
||||
chartPadding: 20,
|
||||
labelDirection: 'explode',
|
||||
@include('charts::_partials.dimension.js')
|
||||
};
|
||||
|
||||
new Chartist.Pie('#{{ $model->id }}', data, options);
|
||||
</script>
|
22
Laravel/resources/views/vendor/charts/chartist/line.blade.php
vendored
Normal file
22
Laravel/resources/views/vendor/charts/chartist/line.blade.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
[
|
||||
@foreach($model->values as $value)
|
||||
{{ $value }},
|
||||
@endforeach
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
var options = { @include('charts::_partials.dimension.js') }
|
||||
|
||||
new Chartist.Line('#{{ $model->id }}', data, options);
|
||||
</script>
|
26
Laravel/resources/views/vendor/charts/chartist/multi/area.blade.php
vendored
Normal file
26
Laravel/resources/views/vendor/charts/chartist/multi/area.blade.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
@foreach($model->datasets as $ds)
|
||||
[
|
||||
@foreach($ds['values'] as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
],
|
||||
@endforeach
|
||||
]
|
||||
};
|
||||
|
||||
var options = {
|
||||
showArea: true,
|
||||
@include('charts::_partials.dimension.js')
|
||||
}
|
||||
new Chartist.Line('#{{ $model->id }}', data, options);
|
||||
</script>
|
24
Laravel/resources/views/vendor/charts/chartist/multi/bar.blade.php
vendored
Normal file
24
Laravel/resources/views/vendor/charts/chartist/multi/bar.blade.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
@foreach($model->datasets as $ds)
|
||||
[
|
||||
@foreach($ds['values'] as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
],
|
||||
@endforeach
|
||||
]
|
||||
};
|
||||
|
||||
var options = { @include('charts::_partials.dimension.js') }
|
||||
|
||||
new Chartist.Bar('#{{ $model->id }}', data, options);
|
||||
</script>
|
24
Laravel/resources/views/vendor/charts/chartist/multi/line.blade.php
vendored
Normal file
24
Laravel/resources/views/vendor/charts/chartist/multi/line.blade.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
@foreach($model->datasets as $ds)
|
||||
[
|
||||
@foreach($ds['values'] as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
],
|
||||
@endforeach
|
||||
]
|
||||
};
|
||||
|
||||
var options = { @include('charts::_partials.dimension.js') }
|
||||
|
||||
new Chartist.Line('#{{ $model->id }}', data, options);
|
||||
</script>
|
24
Laravel/resources/views/vendor/charts/chartist/pie.blade.php
vendored
Normal file
24
Laravel/resources/views/vendor/charts/chartist/pie.blade.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
@include('charts::_partials.container.chartist')
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = {
|
||||
labels: [
|
||||
@foreach($model->labels as $label)
|
||||
"{!! $label !!}",
|
||||
@endforeach
|
||||
],
|
||||
series: [
|
||||
@foreach($model->values as $value)
|
||||
"{{ $value }}",
|
||||
@endforeach
|
||||
]
|
||||
};
|
||||
|
||||
var options = {
|
||||
chartPadding: 20,
|
||||
labelDirection: 'explode',
|
||||
@include('charts::_partials.dimension.js')
|
||||
};
|
||||
|
||||
new Chartist.Pie('#{{ $model->id }}', data, options);
|
||||
</script>
|
Reference in New Issue
Block a user