mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 04:33:11 +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({
|
||||
type: 'line',
|
||||
options: {
|
||||
title: {
|
||||
title: {
|
||||
display: true,
|
||||
text: `${from_currency} / ${conv_currency}`,
|
||||
},
|
||||
scales: [
|
||||
{
|
||||
yAxes: [
|
||||
{
|
||||
ticks: {
|
||||
beginAtZero: false,
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
data: {
|
||||
labels: date,
|
||||
|
|
Loading…
Add table
Reference in a new issue