From f63730e87ebb9fa348228fd456d06cfa8052f387 Mon Sep 17 00:00:00 2001 From: Redume Date: Wed, 7 Aug 2024 00:09:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=93=D1=80=D0=B0=D1=84=D0=B8=D0=BA=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BD=D0=B0=D1=87=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=BD=D0=B5=20=D0=BE=D1=82=20?= =?UTF-8?q?=D0=BD=D0=BE=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart/main.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/chart/main.js b/chart/main.js index 9a76407..dc6610c 100644 --- a/chart/main.js +++ b/chart/main.js @@ -33,10 +33,21 @@ async function gen_chart(from_currency, conv_currency, start_date, end_date) { const chart = ChartJSImage().chart({ type: 'line', options: { - title: { + title: { display: true, text: `${from_currency} / ${conv_currency}`, }, + scales: [ + { + yAxes: [ + { + ticks: { + beginAtZero: false, + } + } + ] + } + ] }, data: { labels: date,