New Controllers added. Added Charts
This commit is contained in:
30
Laravel/resources/views/vendor/charts/c3/area.blade.php
vendored
Normal file
30
Laravel/resources/views/vendor/charts/c3/area.blade.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
["{!! $model->element_label !!}",@foreach($model->values as $value){{ $value }},@endforeach],
|
||||
],
|
||||
type: 'area',
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
30
Laravel/resources/views/vendor/charts/c3/bar.blade.php
vendored
Normal file
30
Laravel/resources/views/vendor/charts/c3/bar.blade.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
["{!! $model->element_label !!}",@foreach($model->values as $value){{ $value }},@endforeach],
|
||||
],
|
||||
type: 'bar',
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
32
Laravel/resources/views/vendor/charts/c3/donut.blade.php
vendored
Normal file
32
Laravel/resources/views/vendor/charts/c3/donut.blade.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
@for($i = 0; $i < count($model->labels); $i++)
|
||||
["{!! $model->labels[$i] !!}", {{ $model->values[$i] }}],
|
||||
@endfor
|
||||
],
|
||||
type: 'donut',
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
34
Laravel/resources/views/vendor/charts/c3/gauge.blade.php
vendored
Normal file
34
Laravel/resources/views/vendor/charts/c3/gauge.blade.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
["{!! $model->element_label !!}",{{ $model->values[0] }}],
|
||||
],
|
||||
type: 'gauge',
|
||||
},
|
||||
gauge: {
|
||||
min: {{ ($model->values && count($model->values) > 1) ? $model->values[1] : '0' }},
|
||||
max: {{ ($model->values && count($model->values) > 2) ? $model->values[2] : '100' }},
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
29
Laravel/resources/views/vendor/charts/c3/line.blade.php
vendored
Normal file
29
Laravel/resources/views/vendor/charts/c3/line.blade.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
["{!! $model->element_label !!}",@foreach($model->values as $value){{ $value }},@endforeach],
|
||||
]
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
32
Laravel/resources/views/vendor/charts/c3/multi/area.blade.php
vendored
Normal file
32
Laravel/resources/views/vendor/charts/c3/multi/area.blade.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
@foreach($model->datasets as $ds)
|
||||
["{{ $ds['label'] }}",@foreach($ds['values'] as $value){{ $value }},@endforeach],
|
||||
@endforeach
|
||||
],
|
||||
type: 'area',
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
32
Laravel/resources/views/vendor/charts/c3/multi/bar.blade.php
vendored
Normal file
32
Laravel/resources/views/vendor/charts/c3/multi/bar.blade.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
@foreach($model->datasets as $ds)
|
||||
["{{ $ds['label'] }}",@foreach($ds['values'] as $value){{ $value }},@endforeach],
|
||||
@endforeach
|
||||
],
|
||||
type: 'bar',
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
31
Laravel/resources/views/vendor/charts/c3/multi/line.blade.php
vendored
Normal file
31
Laravel/resources/views/vendor/charts/c3/multi/line.blade.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
@foreach($model->datasets as $ds)
|
||||
["{{ $ds['label'] }}",@foreach($ds['values'] as $value){{ $value }},@endforeach],
|
||||
@endforeach
|
||||
]
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
32
Laravel/resources/views/vendor/charts/c3/pie.blade.php
vendored
Normal file
32
Laravel/resources/views/vendor/charts/c3/pie.blade.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
@include('charts::_partials.container.div')
|
||||
<script>
|
||||
var {{ $model->id }} = c3.generate({
|
||||
bindto: '#{{ $model->id }}',
|
||||
data: {
|
||||
columns: [
|
||||
@for($i = 0; $i < count($model->labels); $i++)
|
||||
["{!! $model->labels[$i] !!}", {{ $model->values[$i] }}],
|
||||
@endfor
|
||||
],
|
||||
type: 'pie',
|
||||
},
|
||||
axis: {
|
||||
x: {
|
||||
type: 'category',
|
||||
categories: [@foreach($model->labels as $label)"{!! $label !!}",@endforeach]
|
||||
},
|
||||
y: {
|
||||
label: {
|
||||
text: "{!! $model->element_label !!}",
|
||||
position: 'outer-middle',
|
||||
}
|
||||
},
|
||||
},
|
||||
@if($model->title)
|
||||
title: {
|
||||
text: "{!! $model->title !!}",
|
||||
x: -20 //center
|
||||
},
|
||||
@endif
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user