How to reduce the number of culling on X-Axis

Hello Team Helical,

I have a line chart. I used the following script in JS editor to reduce the number of culling on X-axis. It is not showing any change. Please help.

hi_container.set(“preExecution”,function(c){
var viz_Options = c.get(“viz_Options”);
viz_Options.chartOptions = {
axis:{
x: {
tick:{
culling:{
max: 6
}
}
}
}
}
};
c.set(“viz_Options”,viz_Options);
});

reduce-culling

Thank you
Linapag

1 Like

Hi Linapag,

The script is correct. If you have any other customization using the same object, like Axis Tick Rotate, Axis Tick Label etc., the script in JS Editor will get overridden. Remove all customizations applied and then check the working of the script. Please use all the scripts using the same object that need to be applied also within the JS itself so that it will not override the culling script.

Thank You
Team Helical