- client: 1750 Display 0% at the bottom in the statistical chart
Close #1750 * commit 'd21535683c1dbd981933e9bb6fcb9a1097841092': - client: 1750 Display 0% at the bottom in the statistical chart
This commit is contained in:
commit
fb7ca94243
|
@ -8,7 +8,7 @@ const Line = ({ data, color }) => data
|
||||||
&& <ResponsiveLine
|
&& <ResponsiveLine
|
||||||
data={data}
|
data={data}
|
||||||
margin={{
|
margin={{
|
||||||
top: 15,
|
top: data[0].data.every(({ y }) => y === 0) ? 62 : 15,
|
||||||
right: 0,
|
right: 0,
|
||||||
bottom: 1,
|
bottom: 1,
|
||||||
left: 20,
|
left: 20,
|
||||||
|
|
Loading…
Reference in New Issue