highcharts 实际开发应用

 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'
                    }
                }

            }]


效果如下 :


可以在制定X坐标(value: Date.UTC(2012,11,10),)的两侧显示自定义文字。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值