如何使用 c3js.org 将 x 轴标签向左或负向旋转? This example给出以下代码:
axis: {
x: {
type: 'category',
tick: {
rotate: 75,
multiline: false
},
height: 130
}
}
但是如果我尝试“旋转:-65,”而不是 this d3js.org example ,x 轴标签从图中消失。我正在使用“type: 'timeseries',”,但我认为这没有什么区别。
最佳答案
应该在发布之前尝试一下,但我想我会分享......这个有效:
axis: {
x: {
type: 'category',
tick: {
rotate: -20,
multiline: false
},
height: 35
}
}
它是旋转和高度 (doh) 的组合。
关于javascript - 如何在 c3.js 中将 x 轴标签向左或负旋转?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50864465/