首页 > Web开发 > 详细

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

时间:2015-01-07 00:21:26      阅读:853      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!