javascript - Under what circumstances is the echarts attribute barCategoryGap used?
给我你的怀抱
给我你的怀抱 2017-06-26 10:51:59
0
1
1702

1.Under what circumstances is the echarts attribute barCategoryGap used?
2. How to fix the category width?

The first problem to be solved is the category width of the bar chart-category chart (note that it is not the column height, the column height is barWidth, I know it)
Generally, the category width is based on the box Adaptive, what I want to do is to make this value fixed,
The following is the official online demo that can be operated
http://echarts.baidu.com/gall...

给我你的怀抱
给我你的怀抱

reply all(1)
某草草

How about filling the data array with some empty strings?
For example: I only have two sets of data, but I want the width of each category to occupy 1/6 of the total width
Then, data can be written as ['1231', '123', '', '', '', ' '].
In this case, the effect can also be achieved.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template