Kaynağa Gözat

Fix waterwave background

afc163 8 yıl önce
ebeveyn
işleme
95aef7c663
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/components/Charts/WaterWave/index.js

+ 1 - 1
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;