add: full multi-tenancy control
This commit is contained in:
96
storage/framework/views/78de902192b1714ac039398d9f4426d8.php
Executable file
96
storage/framework/views/78de902192b1714ac039398d9f4426d8.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<v-charts-line <?php echo e($attributes); ?>></v-charts-line>
|
||||
|
||||
<?php if (! $__env->hasRenderedOnce('5dcbdcea-f6f4-435b-ae76-dd8aacd7f7fb')): $__env->markAsRenderedOnce('5dcbdcea-f6f4-435b-ae76-dd8aacd7f7fb');
|
||||
$__env->startPush('scripts'); ?>
|
||||
<!-- SEO Vue Component Template -->
|
||||
<script
|
||||
type="text/x-template"
|
||||
id="v-charts-line-template"
|
||||
>
|
||||
<canvas
|
||||
:id="$.uid + '_chart'"
|
||||
class="flex w-full items-end"
|
||||
:style="'aspect-ratio:' + aspectRatio + '/1'"
|
||||
></canvas>
|
||||
</script>
|
||||
|
||||
<script type="module">
|
||||
app.component('v-charts-line', {
|
||||
template: '#v-charts-line-template',
|
||||
|
||||
props: {
|
||||
labels: {
|
||||
type: Array,
|
||||
default: [],
|
||||
},
|
||||
|
||||
datasets: {
|
||||
type: Array,
|
||||
default: true,
|
||||
},
|
||||
|
||||
aspectRatio: {
|
||||
type: Number,
|
||||
default: 3.23,
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
chart: undefined,
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.prepare();
|
||||
},
|
||||
|
||||
methods: {
|
||||
prepare() {
|
||||
if (this.chart) {
|
||||
this.chart.destroy();
|
||||
}
|
||||
|
||||
this.chart = new Chart(document.getElementById(this.$.uid + '_chart'), {
|
||||
type: 'line',
|
||||
|
||||
data: {
|
||||
labels: this.labels,
|
||||
|
||||
datasets: this.datasets,
|
||||
},
|
||||
|
||||
options: {
|
||||
aspectRatio: this.aspectRatio,
|
||||
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
|
||||
scales: {
|
||||
x: {
|
||||
beginAtZero: true,
|
||||
|
||||
border: {
|
||||
dash: [8, 4],
|
||||
}
|
||||
},
|
||||
|
||||
y: {
|
||||
beginAtZero: true,
|
||||
border: {
|
||||
dash: [8, 4],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php $__env->stopPush(); endif; ?><?php /**PATH /var/www/html/packages/Webkul/Admin/src/Resources/views/components/charts/line.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user