cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
  1. Edit the widge script.
  2. Copy and paste the code below and set the category name and color (hex format) desired.
widget.on('ready', function(se, ev){ 
 
 var e = element; 
 var chart = e.data('hc');
 var categoryName = "Beverages";
 var data = chart.series[0].data;
 var category = _.find(data, function(cat){return cat.name == categoryName});
 
 category.update({color:"#ff0011"}, true);
})
Before:
After:
Version history
Last update:
‎03-02-2023 09:45 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: