我正在使用n3折线图(http://n3-charts.github.io/line-chart/#/),但我很难找到如何使x轴标签对角旋转的解决方案,就像在这个例子中一样:
http://www.d3noob.org/2013/01/how-to-rotate-text-labels-for-x-axis-of.html
答案 0 :(得分:0)
尝试按照以下方式做点什么:
// X-Axis Font
.x-axis {
text {
transform: rotate(340deg);
}
}
你可能需要摆弄文本锚,但这会旋转文本。