From f7631694baa056033760f54d6c83015b6e46248f Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Thu, 28 Dec 2023 09:19:23 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/views/AboutPortalPage.vue | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/front/src/views/AboutPortalPage.vue b/src/front/src/views/AboutPortalPage.vue index 781b3433d..85ce5834f 100644 --- a/src/front/src/views/AboutPortalPage.vue +++ b/src/front/src/views/AboutPortalPage.vue @@ -44,7 +44,7 @@ - + @@ -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