Skip to content

Commit 4eb97b2

Browse files
authored
Merge pull request #1009 from Sysvale/bugfix/gauge-chart-colors
Bugfix/gauge chart colors
2 parents 98e65da + 0925d86 commit 4eb97b2

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.142.2",
3+
"version": "3.142.3",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

src/components/GaugeChart.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@mouseleave="showPopover = false"
1717
>
1818
<linearGradient
19-
id="gradient"
19+
:id="`gradient-${uniqueKey}`"
2020
x1="0"
2121
y1="0"
2222
x2="0"
@@ -41,10 +41,10 @@
4141
/>
4242

4343
<path
44-
4544
fill="none"
4645
class="indicator-progress"
4746
d="M30,90 A40,40 0 1,1 80,90"
47+
:style="{ stroke: `url(#gradient-${uniqueKey})` }"
4848
/>
4949

5050
<path
@@ -241,7 +241,6 @@ $target: v-bind(targetValue);
241241
}
242242
243243
path.indicator-progress {
244-
stroke: url(#gradient);
245244
stroke-dasharray: 198;
246245
stroke-dashoffset: var(--percentage);
247246
animation: dash 1s ease-out;

0 commit comments

Comments
 (0)