graph y axis now begins at 0 to to avoid exaggerating wide swings in the data

This commit is contained in:
Jack 2020-05-15 17:45:45 +01:00
parent 7d02434646
commit a5ef8655fc
2 changed files with 4 additions and 2 deletions

View file

@ -289,7 +289,8 @@ var resultHistoryChart = new Chart($(".pageAccount #resultHistoryChart"), {
}],
yAxes: [{
ticks: {
fontFamily: "Roboto Mono"
fontFamily: "Roboto Mono",
beginAtZero: true
},
display: true,
scaleLabel: {

View file

@ -1030,7 +1030,8 @@ let wpmOverTimeChart = new Chart(ctx, {
labelString: 'Words per Minute'
},
ticks: {
fontFamily: 'Roboto Mono'
fontFamily: 'Roboto Mono',
beginAtZero: true
}
}]
}