Skip to content

Commit

Permalink
Merge pull request #2 from borntofrappe/main
Browse files Browse the repository at this point in the history
update gradient definition
  • Loading branch information
chrisburnell authored Jul 12, 2024
2 parents 8e63574 + a6380a6 commit 56a2f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svg-sparkline.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class SVGSparkline extends HTMLElement {
content.push(`
<defs>
<linearGradient id="svg-sparkline-gradient-${gradientID}" gradientTransform="rotate(90)">
<stop offset="0%" stop-color="${gradientColor}" />
<stop offset="100%" stop-color="transparent" />
<stop offset="0%" stop-color="${gradientColor}" stop-opacity="1" />
<stop offset="100%" stop-color="${gradientColor}" stop-opacity="0" />
</linearGradient>
</defs>
`)
Expand Down

0 comments on commit 56a2f71

Please sign in to comment.