有关Highchart的那些事。。。备份一段(稍后修改)

$(function () {
    $('#CurrentFinanceChart').highcharts({
         title: {
            text: ''
        },
        xAxis: {
            type: 'datetime',
            dateTimeLabelFormats: {
                 day: '%m-%e'    //日期格式
            }
        },    
        yAxis: {
            title: {
                text: ''
            },
            labels: {
                formatter: function() {
                    return this.value / 1000;
                }
            }
        },
        legend: {
            enabled: false
        },

        credits:{
             enabled:false // 禁用版权信息
        },
        series: [{
            name: '七日年化平均',
            data: [ 30 , 11, 32, 110, 235, 369, 640],
            color: '#FF9003',
            
            pointStart: Date.UTC(2016, 2, 9),    //传说用10位的时间戳也可以,囧。
            pointInterval: 24 * 3600 * 1000 // one day
        }]
    });

 Date.UTC(year,month,day,hours,minutes,seconds,ms)

 

参数描述
year 必需。表示年份的四位数字。
month 必需。表示月份的整数,介于 0 ~ 11。
day 必需。表示日期的整数,介于 1 ~ 31。
hours 可选。表示小时的整数,介于 0 ~ 23。
minutes 可选。表示分钟的整数,介于 0 ~ 59。
seconds 可选。表示秒的整数,介于 0 ~ 59。
ms

可选。表示毫秒的整数,介于 0 ~ 999。

 

 

 

 

 

posted @ 2016-04-11 21:22  一点点白  阅读(595)  评论(0编辑  收藏  举报