Я дал 'вращение: -90', чтобы вращать метки оси x
Но это вращение применяется даже к названию оси.
Как я могу это остановить? Пожалуйста, кто-нибудь, помогите мне.
Ниже приведен код, который я использую ..
makeCharts = function() {
var chart1 = new dojox.charting.Chart2D("simplechart", {
title: "Production(Quantity)",
titlePos: "top",
titleGap: 5,
titleFont: "normal normal normal 15pt Arial",
titleFontColor: "orange"
});
chart1.addPlot("default",{type:"ClusteredColumns",
gap: 5,
animate:{duration: 500} })
chart1.addSeries("2008", [113.1,72.1,62.6,59.8,59.3,53.7,52.4,49.1,43.7,40.9], {fill: "#DDFEDC"});
chart1.addSeries("2007",[113.6,65.0,59.2,56.4,62.8,53.5,47.6,44.9,41.5,39.1], {fill: "#FCDEFD"});
chart1.addAxis("x", {
title:'x-axis title comes here',
includeZero: false,
labels:[
{value:1, text:'one'},
{value:2, text:'two'},
{value:3, text:'three'},
{value:4, text:'four'},
{value:5, text:'five'},
{value:6, text:'six'},
{value:7, text:'seven'},
{value:8, text:'eight'},
{value:9, text:'nine'},
{value:10, text:'ten'}
],
rotation:-90
}
);
chart1.addAxis("y", {
vertical: true,
includeZero: true,
from:0,
to:200,
minorTickStep:20}
);
var anim4b = new dojox.charting.action2d.Tooltip(chart1, 'default');
chart1.render();
new dojox.charting.widget.Legend({chart:chart1, horizontal: true}, "legend");
};
dojo.addOnLoad(makeCharts);