Last active
March 19, 2019 00:26
-
-
Save rwbrockhoff/bdb5f93ccc460558c384e241a96d38e4 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 {width: graphWidth} = myChartRef.canvas; | |
let gradientLine = myChartRef | |
.createLinearGradient(0, 0, graphWidth * 2, 0); | |
gradientLine.addColorStop(0, "#FF006E"); | |
gradientLine.addColorStop(1, "#F46036"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment