码迷,mamicode.com
首页 > Web开发 > 详细

JQuery图形插件,Highcharts平滑线条处理方法

时间:2015-01-07 00:22:35      阅读:424      评论:0      收藏:0      [点我收藏+]

标签:

第一种:静态数据

 

$(‘#THChartDiv‘).highcharts({
    chart: {
        type: ‘spline‘
    },
    title: {
        text:过程线‘
},
    xAxis: {
    title: {
            text: ‘X‘
    }
},
yAxis: {
    title: {
            text: ‘Y‘
    }
},
tooltip: {
    enabled: true,
    formatter: function () {
        return ‘this.y + ‘,‘ + this.x;
    }
},
legend: {
    enabled: false
},
plotOptions: {
    line: {
            dataLabels: {
                enabled: true
            },
        enableMouseTracking: false
    }
},
series: [{
    name: ‘XY‘,
    data: [[3.9, 4.2], [5.7, 8.5], [8.9, 15.2], [17.0, 26.6], [34.2, 50.3], [46.6, 74.8]]
}]
});
chart = $(‘#THChartDiv‘).highcharts();


第二种:动态数据

 

JQuery图形插件,Highcharts平滑线条处理方法

标签:

原文地址:http://www.cnblogs.com/coolsundy/p/4207233.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!