Исправлено
This commit is contained in:
1 parent
4525eb38d9
commit
72a5554905
2 files changed
+40
-40
No files matched your search
@@ -53,51 +53,51 @@
|
||||
import { ref, computed } from 'vue'
|
||||
import {getfromserver, pagecounter, splitname} from '@/utils/universal_functions'
|
||||
import moment from 'moment'
|
||||
import {
|
||||
Chart as ChartJS,
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
PointElement,
|
||||
LineElement,
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend
|
||||
} from 'chart.js'
|
||||
import { Line } from 'vue-chartjs'
|
||||
import * as chartConfig from './chartConfig.js'
|
||||
// import {
|
||||
// Chart as ChartJS,
|
||||
// CategoryScale,
|
||||
// LinearScale,
|
||||
// PointElement,
|
||||
// LineElement,
|
||||
// Title,
|
||||
// Tooltip,
|
||||
// Legend
|
||||
// } from 'chart.js'
|
||||
// import { Line } from 'vue-chartjs'
|
||||
// import * as chartConfig from './chartConfig.js'
|
||||
|
||||
ChartJS.register(
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
PointElement,
|
||||
LineElement,
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend
|
||||
)
|
||||
// ChartJS.register(
|
||||
// CategoryScale,
|
||||
// LinearScale,
|
||||
// PointElement,
|
||||
// LineElement,
|
||||
// Title,
|
||||
// Tooltip,
|
||||
// Legend
|
||||
// )
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Line
|
||||
},
|
||||
// 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 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 options = {
|
||||
// responsive: true,
|
||||
// maintainAspectRatio: false
|
||||
// }
|
||||
|
||||
const visiting = ref([])
|
||||
const previousWeekStart = moment().subtract(1, 'weeks').startOf('week'); // начало предыдущей недели
|
||||
@@ -231,8 +231,8 @@ const options = {
|
||||
countgrupp,
|
||||
activuser,
|
||||
chartConfig,
|
||||
data,
|
||||
options
|
||||
// data,
|
||||
// options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user