I am trying to set a gradient color via javascript function using below gradient css
radial-gradient(circle at bottom right, rgba(66, 68, 90, 1) 0%,rgba(66, 68, 90, 1) 0%,rgba(255, 168, 125, 1) 0%,rgba(255, 69, 69, 1) 100%)
And JS is
gpickr.setGradient('radial-gradient(circle at bottom right, rgba(66, 68, 90, 1) 0%,rgba(66, 68, 90, 1) 0%,rgba(255, 168, 125, 1) 0%,rgba(255, 69, 69, 1) 100%)')
when the above code used the output should look like below

Instead the output looks like

You can run the above JS in your demo via browser console and try
I am trying to set a gradient color via javascript function using below gradient css
And JS is
when the above code used the output should look like below
Instead the output looks like
You can run the above JS in your demo via browser console and try