解决方案:在图表中管理组列之间的空间

问题描述 投票:0回答:1

enter image description here我正在对组列使用highchart,在这里我不得不减小列的大小,但是当数据较少时,通过执行此highchart来怪异地管理列之间的空间,所以我在寻找波纹管链接的解决方案中寻找这真的很有帮助

https://github.com/highcharts/highcharts-react/issues/77

javascript reactjs highcharts resolve
1个回答
1
投票
您可以通过使用pointPaddinggroupPadding属性来管理空间:

plotOptions: { series: { pointPadding: 0.1, groupPadding: 0.3 } }


实时演示: http://jsfiddle.net/BlackLabel/6m4e8x0y/4875/

API参考:

https://api.highcharts.com/highcharts/plotOptions.column.pointPadding

https://api.highcharts.com/highcharts/plotOptions.column.groupPadding

© www.soinside.com 2019 - 2024. All rights reserved.