Improved precision on chart axes.
This commit is contained in:
parent
b064fcf652
commit
357276dcc0
2 changed files with 4 additions and 2 deletions
|
@ -67,7 +67,8 @@ var myChart = new Chart(ctx,
|
||||||
ticks:
|
ticks:
|
||||||
{
|
{
|
||||||
beginAtZero: false,
|
beginAtZero: false,
|
||||||
suggestedMax: 10
|
suggestedMax: 10,
|
||||||
|
precision: 0
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ var myChart = new Chart(ctx,
|
||||||
ticks:
|
ticks:
|
||||||
{
|
{
|
||||||
beginAtZero: false,
|
beginAtZero: false,
|
||||||
suggestedMax: 10
|
suggestedMax: 10,
|
||||||
|
precision: 0
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue