Skip to content
Advertisement

Tag: jquery-plugins

Change Jquery asPieProgress barcolor at run time

I am using Jquery asPieProgress plugin: https://github.com/thecreation/jquery-asPieProgress#options. I have a situation in which I have to change bar color of it depending upon a value. I tired below but none of that works: $(‘#id’).asPieProgress({barcolor: ‘#2e7d32’}); $(‘#id’).asPieProgress({data-barcolor: ‘#2e7d32’}); $(‘#id’).attr(‘data-barcolor’, ‘#e53935’); $(‘#id’).attr(‘barcolor’, ‘#e53935’); Any help/suggestions will be highly appreciated. Answer I fixed it by giving the style on svg path element directly

Advertisement