Fixing the width of bars in anychart(bar type)

0
Hi everyone, I had made a bar graph whose constraints are dependent on some attribute. Due to this the count of columns/bars also varies. And the width also gets autosized depending on count of bars on the screen(to keep the diff between bars constant). I want to fix the width of bar not the gap between the bar. Is there any code or something by which I can fix the bar width. In both the images above. Graph is same but width is not constant. I want to fix its width. Please help in this regard. Thanks & regards, Kirti
asked
4 answers
4

In the Series configuration there is an Advanced tab. You can add a width configuration there. Remember to set the Mode to Advanced in the main popup configuration screen in order to activate the custom JSON.

{
  "width": 0.1
}

 

answered
1

Hi Kirti,
You can do some thing like this :

 

 

this the json data that i have set. It Worked for me. 

answered
0

Hi Kirti,

For your reference : https://plotly.com/javascript/reference/bar/

answered
0

Hi Kirti

were you able to fix the width? I’m struggling with the same problem although I set “width”: 0.1

Kind regards

Peter

answered