mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-18 20:46:19 +00:00
Merge pull request #264 from acelaya-forks/feature/charts-precision
Feature/charts precision
This commit is contained in:
@@ -32,7 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
||||||
* *Nothing*
|
* [#262](https://github.com/shlinkio/shlink-web-client/issues/262) Fixed charts displaying decimal numbers, when visits are absolute and that makes no sense.
|
||||||
|
|
||||||
|
|
||||||
## 2.4.0 - 2020-04-10
|
## 2.4.0 - 2020-04-10
|
||||||
|
|||||||
3
package-lock.json
generated
3
package-lock.json
generated
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "shlink-web-client",
|
"name": "shlink-web-client",
|
||||||
"version": "2.3.0",
|
|
||||||
"lockfileVersion": 1,
|
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
"lockfileVersion": 1,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": {
|
"@babel/code-frame": {
|
||||||
"version": "7.0.0",
|
"version": "7.0.0",
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const renderGraph = (title, isBarChart, stats, max, highlightedStats, onClick) =
|
|||||||
scales: isBarChart && {
|
scales: isBarChart && {
|
||||||
xAxes: [
|
xAxes: [
|
||||||
{
|
{
|
||||||
ticks: { beginAtZero: true, max },
|
ticks: { beginAtZero: true, precision: 0, max },
|
||||||
stacked: true,
|
stacked: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ describe('<GraphCard />', () => {
|
|||||||
expect(scales).toEqual({
|
expect(scales).toEqual({
|
||||||
xAxes: [
|
xAxes: [
|
||||||
{
|
{
|
||||||
ticks: { beginAtZero: true },
|
ticks: { beginAtZero: true, precision: 0 },
|
||||||
stacked: true,
|
stacked: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user