I have bar chart prepare with eCharts Apache. eCharts set barWidth to fill whole chart container. I can change barWidth but I want to use auto width. How can I get the barWidth after initialization?
I checked getOption, but I cant find there this information.
2
Answers
You can find the item layouts in the chart object itself.
Example:
In the given example its under
_chartsMap["_ec_u0000seriesu00000u00000_series.bar"]._data._itemLayouts
.You can use barWidth to change the width of the bar. For instance: