Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个柱形图,其中每个 X 值都有两个系列。但该图显示每个 X 值之间的间距很大。
问:如何在 Highchart 中使列和 y 轴之间有 1px 的空间?
更新pointPadding :0.2 to pointPadding :0 于
pointPadding :0.2 to pointPadding :0
plotOptions: { column: { pointPadding: 0, borderWidth: 0 } },
chart: { marginBottom: 1, marginLeft: 0, marginRight: 0, marginTop: 0, renderTo: container, type: 'column', },
演示
还要检查GroupPadding和PointPadding