From 95aef7c6632dec5940c07fc81e55ed00de9f1639 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 26 Oct 2017 11:35:32 +0800 Subject: [PATCH] Fix waterwave background --- src/components/Charts/WaterWave/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Charts/WaterWave/index.js b/src/components/Charts/WaterWave/index.js index d1275de9..a9eece61 100644 --- a/src/components/Charts/WaterWave/index.js +++ b/src/components/Charts/WaterWave/index.js @@ -102,7 +102,7 @@ class WaterWave extends PureComponent { ctx.lineTo(xOffset, canvasHeight); ctx.lineTo(startPoint[0], startPoint[1]); - const gradient = ctx.createLinearGradient(0, 0, 0, 170); + const gradient = ctx.createLinearGradient(0, 0, 0, canvasHeight); gradient.addColorStop(0, '#ffffff'); gradient.addColorStop(1, '#1890FF'); ctx.fillStyle = gradient; -- GitLab