Home > front end >  Excuse me jqplot HuaShe chart, y words how modified into vertical?
Excuse me jqplot HuaShe chart, y words how modified into vertical?

Time:10-09


My code is such, but y words or lateral, can't change the vertical, bother bosses correct me, thank you!
$(function () {
Var, line1=[[' 2014-1-7 ', 1312], [' 2014-1-8 ', 1523],
[' 2014-1-9 ', 1234], [' 2014-1-10 ', 1131], [' 2014-1-11 ', 1234], [' 2014-1-12 ', 1042]];
Var plot1=$. Jqplot (' chart1, [, line1], {
Title: 'dream currency rate trend chart,
AxesDefaults: {
LabelRenderer: $. Jqplot. CanvasAxisLabelRenderer//set the X and Y axis of the text rendering engine
},
Axes: {
Xaxis: {
Label: '7 days',
The renderer: $. Jqplot. DateAxisRenderer,
TickOptions: {
//x axis calibration label format for the date, such as: May 1
//the formatString: '# % b % d'
The formatString: '% y - # % m - % d'
},
TickInterval: 'one day'
},
Yaxis: {
Label: '100 RMB currency convertible dream',
LabelRenderer: $. Jqplot. CanvasAxisLabelRenderer,
TickOptions: {
//y axis calibration label format as the number of dollars with two decimal places, such as: $500.00
The formatString: '%. 0 f'
}
}
},
Highlighter: {
//whether the highlighted
Show: true,
//when the mouse moves to the data points, the increment of data points to expand increment
SizeAdjust: 7.5
},
Cursor: {
//display the cursor, if true, the cursor
the default of a crossShow: false
}
});

});
  • Related