是否有可能逆转amcharts基于时间的图表的分类轴?我知道价值轴可以轻松翻转,但我还没有看到类别轴的解决方案。我需要在左边有最相关的,因此最近的数据。amcharts:逆时(类别)轴?
我使用基于时间的面积图。这里有一个演示:http://jsfiddle.net/N5rpu/1/
在这个例子中,我颠倒了价值轴,做了同样的类别轴只是为了显示没有任何反应。
var chart = AmCharts.makeChart("chartdiv", {
"type": "serial",
"theme": "none",
"pathToImages": "http://www.amcharts.com/lib/3/images/",
"dataProvider": chartData,
"valueAxes": [{
"position": "left",
"title": "Unique visitors",
"reversed": true
}],
"graphs": [{
"fillAlphas": 0.4,
"valueField": "visits"
}],
"chartScrollbar": {},
"chartCursor": {
"categoryBalloonDateFormat": "JJ:NN, DD MMMM",
"cursorPosition": "mouse"
},
"categoryField": "date",
"categoryAxis": {
"minPeriod": "mm",
"parseDates": true,
"reversed": true
}
});
不幸的是,这是不可能的。 – zeroin