labelRotation
是categoryAxis
的财产,不是图表的财产。所以你需要将它应用于chart.categoryAxis
:
chart.categoryAxis.labelRotation = 45;
这是你的updated fiddle。
使用AmCharts.makeChart:
var chart = AmCharts.makeChart( chartId, {
....
....
"categoryAxis": {
"labelRotation": 45,
....
}
....
....
}