How to change the bin size of histogram in anychart?

0
I created a histogram with the use of anychart, but the values at x is increased by one for every column, but my data are accurate to 0.1, which cannot be nicely displayed. Is there a way to change the bin size of the histogram? I found some documents that has the code to change the bin size with python or javascript, but did not find any to change inside the layout or data inside the Anychart Widget.
asked
2 answers
1

when you generate json you need to set the interval. for example in any chart code

 

chart.histogram(data).bins({interval: 10});

 

in json format 

 

{ "chart": { "type": "histogram", "series": [{ "data": "YourDataSeriesHere", "histogram": { "bins": { "interval": 10 } } }] } }

 

image.png

hope this help

answered
0

Hi,

 

Please review the document as it will help explain how to work with AnyChart and how you can change your column intervals.

 

Any Chart | Mendix Documentation

answered