mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
График теперь начинается не от ноля
This commit is contained in:
parent
5b82defd78
commit
f63730e87e
1 changed files with 12 additions and 1 deletions
|
@ -33,10 +33,21 @@ async function gen_chart(from_currency, conv_currency, start_date, end_date) {
|
||||||
const chart = ChartJSImage().chart({
|
const chart = ChartJSImage().chart({
|
||||||
type: 'line',
|
type: 'line',
|
||||||
options: {
|
options: {
|
||||||
title: {
|
title: {
|
||||||
display: true,
|
display: true,
|
||||||
text: `${from_currency} / ${conv_currency}`,
|
text: `${from_currency} / ${conv_currency}`,
|
||||||
},
|
},
|
||||||
|
scales: [
|
||||||
|
{
|
||||||
|
yAxes: [
|
||||||
|
{
|
||||||
|
ticks: {
|
||||||
|
beginAtZero: false,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
labels: date,
|
labels: date,
|
||||||
|
|
Loading…
Add table
Reference in a new issue