我正在尝试将图表中的列与左侧对齐。默认情况下它们位于中间。
我在 API 文档中找不到任何有关此内容的信息。
这里是一个 jsFiddle 测试。
I'm trying to align columns to the left in my chart. By default they are in the middle.
I can't find anything about this in the API documentation.
Here is a jsFiddle test.
在 highcharts api 中,您检查过组填充功能吗?http://www.highcharts.com/ref/#plotOptions-column--groupPadding
plotOptions: { series: { groupPadding: 0 } },
如果将 groupPadding 设置为 0 时列显得太宽,你仍然可以使用 pointPadding。 http://www.highcharts.com/ref/#plotOptions-column--pointPadding
(如果这不符合您的需求,我想我有点困惑,因为我不明白图表列如何左对齐,然后在右边有一个大的空白,就可以了精心设计的图表...)
In the highcharts api, have you examined the group padding feature?http://www.highcharts.com/ref/#plotOptions-column--groupPadding
If the columns appear too wide when you set the groupPadding to 0,you can still play with the pointPadding. http://www.highcharts.com/ref/#plotOptions-column--pointPadding
(If that doesn't fit your needs, I guess I'm a bit perplexed,because I don't see how having chart columns aligned to the left,then followed by a big blank space on the right, would makefor a well-designed chart...)
您可以尝试使用边距选项 http://www.highcharts.com/ref/#chart --margin
或左边距选项 http://www.highcharts.com/ref/#chart--marginLeft
或左间距选项 http://www.highcharts.com/ref/#chart--spacingLeft
you can trying using the margin option http://www.highcharts.com/ref/#chart--margin
or the margin left option http://www.highcharts.com/ref/#chart--marginLeft
or the spacing left option http://www.highcharts.com/ref/#chart--spacingLeft
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
在 highcharts api 中,您检查过组填充功能吗?
http://www.highcharts.com/ref/#plotOptions-column--groupPadding
如果将 groupPadding 设置为 0 时列显得太宽,
你仍然可以使用 pointPadding。 http://www.highcharts.com/ref/#plotOptions-column--pointPadding
(如果这不符合您的需求,我想我有点困惑,
因为我不明白图表列如何左对齐,
然后在右边有一个大的空白,就可以了
精心设计的图表...)
In the highcharts api, have you examined the group padding feature?
http://www.highcharts.com/ref/#plotOptions-column--groupPadding
If the columns appear too wide when you set the groupPadding to 0,
you can still play with the pointPadding. http://www.highcharts.com/ref/#plotOptions-column--pointPadding
(If that doesn't fit your needs, I guess I'm a bit perplexed,
because I don't see how having chart columns aligned to the left,
then followed by a big blank space on the right, would make
for a well-designed chart...)
您可以尝试使用边距选项 http://www.highcharts.com/ref/#chart --margin
或左边距选项 http://www.highcharts.com/ref/#chart--marginLeft
或左间距选项 http://www.highcharts.com/ref/#chart--spacingLeft
you can trying using the margin option http://www.highcharts.com/ref/#chart--margin
or the margin left option http://www.highcharts.com/ref/#chart--marginLeft
or the spacing left option http://www.highcharts.com/ref/#chart--spacingLeft