This commit is contained in:
iriska-gri committed 2023-12-28 09:19:23 +03:00
1 parent 7d96f91656
commit f7631694ba
1 file changed
+23 -2
+23 -2
View File
@@ -44,7 +44,7 @@
<v-col class="d-flex flex-column ">
<v-row class="flex-grow-0">
<v-col class="bg-blue">
<!-- <Line :data="data" :options="options" /> -->
<Line :data="data" :options="options" />
</v-col>
</v-row>
<v-row>
@@ -105,6 +105,11 @@
import { ref, computed } from 'vue'
import {getfromserver, pagecounter, splitname} from '@/utils/universal_functions'
import moment from 'moment'
import lineGraph from '@/components/graph/line-graph.vue'
// import {
// Chart as ChartJS,
// CategoryScale,
@@ -129,12 +134,26 @@ import moment from 'moment'
// )
export default {
components: { lineGraph },
// components: {
// Line
// },
setup(){
const data = {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
{
label: 'Data One',
backgroundColor: '#f87979',
data: [40, 39, 10, 40, 39, 80, 40]
}
]
}
const options = {
responsive: true,
maintainAspectRatio: false
}
// const data = {
// labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
// datasets: [
@@ -282,6 +301,8 @@ setup(){
countvis,
countgrupp,
activuser,
data,
options
// chartConfig,
// data,
// options