Improved precision on chart axes.

This commit is contained in:
Christian P. MOMON 2020-01-25 10:27:24 +01:00
parent b064fcf652
commit 357276dcc0
2 changed files with 4 additions and 2 deletions

View file

@ -67,7 +67,8 @@ var myChart = new Chart(ctx,
ticks: ticks:
{ {
beginAtZero: false, beginAtZero: false,
suggestedMax: 10 suggestedMax: 10,
precision: 0
} }
}] }]
} }

View file

@ -57,7 +57,8 @@ var myChart = new Chart(ctx,
ticks: ticks:
{ {
beginAtZero: false, beginAtZero: false,
suggestedMax: 10 suggestedMax: 10,
precision: 0
} }
}] }]
} }