javascript - Highcharts JS : Gap between X-Axis labels is too thin

标签 javascript css datetime types highcharts

当我缩放窗口大小时可以显示更多标签时,X 轴上标签之间的间隙太小。 Highcharts 引擎计算间隙并在不同的断点处设置间隙为零。标签相互接触,对于这个问题,我需要一个解决方案。

I've testing it and the rotation of 90 degrees is not the problem.

type: 'datetime',
labels: {
    rotation: -90
}

直播: jsfiddle.net/k5ckfh76/

最佳答案

labels: {
    style: {
        color: 'blue'
    },
    rotation: 90,
    staggerLines: 2
}

关于javascript - Highcharts JS : Gap between X-Axis labels is too thin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32862767/

相关文章:

javascript - 在 Justified Gallery 中使用 Magnific Popup

切片上的 Javascript 方法链接不起作用

c# - DateTime.ParseExact() 比 DateTime.Parse() 快吗

python - 使用带有固定字符串序列的 pandas 解析数据

Python - 将 UTC 毫秒时间戳转换为本地时间

javascript - For 循环意外增量值

javascript - 未捕获的类型错误 : X has no method 'Y' - but Y *is* declared

javascript - 尝试为包含单词的特定 <tr> 设置 CSS 样式

html - Twitter bootstrap 在小型设备上隐藏元素

css 边框溢出到文本