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:
Rate this article:
Version history
Last update:
‎03-02-2023 09:45 AM
Updated by:
Contributors