From cbc4bca374b529062dd8056cde50deaf24becb8d Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Thu, 28 Dec 2023 09:10:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/graph/chartConfig.ts | 16 ++++++ src/front/src/components/graph/line-graph.vue | 53 +++++++++++-------- 2 files changed, 47 insertions(+), 22 deletions(-) create mode 100644 src/front/src/components/graph/chartConfig.ts diff --git a/src/front/src/components/graph/chartConfig.ts b/src/front/src/components/graph/chartConfig.ts new file mode 100644 index 000000000..2d182bbe7 --- /dev/null +++ b/src/front/src/components/graph/chartConfig.ts @@ -0,0 +1,16 @@ +export const data = { + labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], + datasets: [ + { + label: 'Data One', + backgroundColor: '#f87979', + data: [40, 39, 10, 40, 39, 80, 40] + } + ] + } + + export const options = { + responsive: true, + maintainAspectRatio: false + } + \ No newline at end of file diff --git a/src/front/src/components/graph/line-graph.vue b/src/front/src/components/graph/line-graph.vue index 586546a99..3e2c3b178 100644 --- a/src/front/src/components/graph/line-graph.vue +++ b/src/front/src/components/graph/line-graph.vue @@ -1,31 +1,40 @@ - -