Home  >  Q&A  >  body text

javascript - Under what circumstances is the echarts attribute barCategoryGap used?

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...

给我你的怀抱给我你的怀抱2672 days ago1610

reply all(1)I'll reply

  • 某草草

    某草草2017-06-26 10:53:59

    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.

    reply
    0
  • Cancelreply