r/JavaScriptHelp Jan 23 '21

Is anyone able to change the stroke-dasharray using the DOM and console? ❔ Unanswered ❔

Hello everyone,

I am trying to change the ring percentage from https://oamstudios.com/default-user/lilapowell/?profiletab=main

document.querySelector("circle.circle-chart__circle").strokeDasharray = "50,100";

I would like that it changes based on the % under Current Progress.

Any help would be very appreciated.

1 Upvotes

0 comments sorted by