You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/04/22 03:29:45 UTC

[GitHub] [incubator-echarts] Ovilia commented on issue #12469: 如何得到柱状图柱子的宽度和柱子间的间隙宽度

Ovilia commented on issue #12469:
URL: https://github.com/apache/incubator-echarts/issues/12469#issuecomment-617527533


   没有接口,但是可以自己计算得到。先计算出绘图区域的宽度,就是 `grid.width` 或者如果没有设的话,看文档默认值是 canvas 宽度减去 `grid.left` 和 `grid.right`。然后除以有多少组数据,这个宽度的 https://echarts.apache.org/zh/option.html#series-bar.barWidth (默认 60%),也就是说间隙是 40%。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org