Set Chart Color for custom column

Hi Team Helical,
I have a custom column with calculated values as a measure in bar chart. I want to give a custom color to the bars but I am not able to do this using SetChartColor property. How can I set the color for bars? I am using Helical Insight Version 3.0

Thank You
Kevin

1 Like

Hello Kevin,

You can set the chart color of custom columns by using the following script in the JS editor:

hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.data = {
colors : {
NoOfTravels: '#bcbc00'
}
};
c.set("viz_Options",viz_Options);
});

Thank You
Team Helical