Last active
March 19, 2019 00:27
-
-
Save rwbrockhoff/75e38a9794b00e512e4f530613acab2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {height: graphHeight} = myChartRef.canvas; | |
let gradientLine = myChartRef | |
.createLinearGradient(0, 0, 0, graphHeight); | |
gradientLine.addColorStop(0, "rgb(255, 0, 110, 0.2)"); | |
gradientLine.addColorStop(0.5, "rgb(255, 0, 110, 0.35)"); | |
gradientLine.addColorStop(1, "rgb(255, 0, 110, 0.7)"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment