okrad / svelte-progressbar

A multiseries, SVG progressbar component made with Svelte
https://okrad.github.io/svelte-progressbar/
MIT License
129 stars 18 forks source link

Color property is not reactive! #15

Closed zakaria-chahboun closed 3 years ago

zakaria-chahboun commented 3 years ago

The percent value is reactive, But the color is not reactive!

demo:

  let series = 
    {
      perc: 10,
      color: "#5AB6DF"
    }
  ;
<ProgressBar {series} />

<br />

<button on:click={() => (series = { perc: 80, color: '#FF3E00' })} >Click here</button>