From bc9fd9abd1b8c0a9563bd368cb24e9907af46bba Mon Sep 17 00:00:00 2001 From: vargburz Date: Mon, 1 Feb 2021 16:16:30 +0300 Subject: [PATCH] add classes for arcs --- src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/index.ts b/src/index.ts index d934369..07a1b55 100644 --- a/src/index.ts +++ b/src/index.ts @@ -168,6 +168,13 @@ export class ChartwerkGaugePod extends ChartwerkPod { + if(i === 0) { + return 'value-arc'; + } else { + return 'backgroung-arc' + } + }) .style('fill', (d: object, i: number) => { return this._valueArcColors[i]; }) @@ -194,6 +201,9 @@ export class ChartwerkGaugePod extends ChartwerkPod { + return `stop-arc-${i}`; + }) .style('fill', (d: object, i: number) => { return this._colors[i]; })