plotLines: [{
// color: '#FF0000',
width: 2,
// from:Date.UTC(2000,11,19),
//to:Date.UTC(2012,11,19),
value: Date.UTC(2012,11,10),
zIndex:5,
label: {
text: '回测区间',
verticalAlign: 'bottom',
//textAlign: 'left',
align:'left',
rotation: 360,
x: -150,
y:-60,
style: {
color: '#A1B8D2'
}
}
},{
//color: '#FF0000',
width: 2,
value: Date.UTC(2012,11,10),
zIndex:5,
label: {
text: '实时模拟区间',
verticalAlign: 'bottom',
//textAlign: 'right',
rotation: 360,
align:'right',
x: 140,
y:-60,
style: {
color: '#D9EEF6'
}
}
// color: '#FF0000',
width: 2,
// from:Date.UTC(2000,11,19),
//to:Date.UTC(2012,11,19),
value: Date.UTC(2012,11,10),
zIndex:5,
label: {
text: '回测区间',
verticalAlign: 'bottom',
//textAlign: 'left',
align:'left',
rotation: 360,
x: -150,
y:-60,
style: {
color: '#A1B8D2'
}
}
},{
//color: '#FF0000',
width: 2,
value: Date.UTC(2012,11,10),
zIndex:5,
label: {
text: '实时模拟区间',
verticalAlign: 'bottom',
//textAlign: 'right',
rotation: 360,
align:'right',
x: 140,
y:-60,
style: {
color: '#D9EEF6'
}
}
}]
效果如下 :
可以在制定X坐标(value: Date.UTC(2012,11,10),)的两侧显示自定义文字。