Setting width of Bar chart

Hello Team Helical,

I am using Helical Insight 3.1. I am using bar chart, however I would like to change the bar width, i tried the below code but no luck

hi_container.set("preExecution",function(c){
  var viz_Options = c.get("viz_Options");
  viz_Options.chartOptions.bar.width = {
    ratio: 0.5
  }
  
  c.set("viz_Options",viz_Options);
});
1 Like

a. Open below h3.txt and copy the content
H3.txt (11.1 KB)
b. Open h3.js on your server (“…\hi\apache-tomcat-7\webapps\hi-ee\js\vendors”) and replace that content with the text file content.
c. Then the below kind of prefetch scripts can be inserted into the Adhoc JS editor.
For bar width below

hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.bar = {
width: {
ratio: 0.1 //specify the ratio here
}
};
c.set("viz_Options", viz_Options);
})