Explorar el Código

Fix waterwave background

afc163 hace 8 años
padre
commit
95aef7c663
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;