Skip to content

Commit

Permalink
fix gradient issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Mar 24, 2022
1 parent 1eb0965 commit 7b8de04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ha-sankey-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ export class SankeyChart extends LitElement {
<defs>
${connections.map((c, i) => svg`
<linearGradient id="gradient${b.entity_id + i}">
<stop offset="0%" stop-color="${c.startColor}"/>
<stop offset="100%" stop-color="${c.endColor}"/>
<stop offset="0%" stop-color="${c.startColor}"></stop>
<stop offset="100%" stop-color="${c.endColor}"></stop>
</linearGradient>
`)}
</defs>
Expand Down

0 comments on commit 7b8de04

Please sign in to comment.