mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
Added precision 0 to charts, to avoid having decimals
This commit is contained in:
parent
61c027f9a1
commit
59fda29894
3 changed files with 3 additions and 4 deletions
3
package-lock.json
generated
3
package-lock.json
generated
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
"name": "shlink-web-client",
|
||||
"version": "2.3.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": {
|
||||
"version": "7.0.0",
|
||||
|
|
|
@ -79,7 +79,7 @@ const renderGraph = (title, isBarChart, stats, max, highlightedStats, onClick) =
|
|||
scales: isBarChart && {
|
||||
xAxes: [
|
||||
{
|
||||
ticks: { beginAtZero: true, max },
|
||||
ticks: { beginAtZero: true, precision: 0, max },
|
||||
stacked: true,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -64,7 +64,7 @@ describe('<GraphCard />', () => {
|
|||
expect(scales).toEqual({
|
||||
xAxes: [
|
||||
{
|
||||
ticks: { beginAtZero: true },
|
||||
ticks: { beginAtZero: true, precision: 0 },
|
||||
stacked: true,
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue