天天看点

图表插件

http://www.hcharts.cn/

http://www.hcharts.cn/demo/highcharts/line-basic

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'line'
        },
        title: {
            text: 'Monthly Average Temperature'
        },
        subtitle: {
            text: 'Source: WorldClimate.com'
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        yAxis: {
            title: {
                text: 'Temperature (°C)'
            }
        },
        plotOptions: {
            line: {
                dataLabels: {
                    enabled: true
                },
                enableMouseTracking: false
            }
        },
        series: [{
            name: 'Tokyo',
            data: [, , , , , , , , , , , ]
        }, {
            name: 'London',
            data: [, , , , , , , , , , , ]
        }]
    });
});
<div id="container" style="min-width:400px;height:400px"></div>
           

展示效果

图表插件

// jQuery

//http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js

// Highcharts

//http://cdn.hcharts.cn/highcharts/highcharts.js

// Highstock

//http://cdn.hcharts.cn/highstock/highstock.js

// Highmaps

//http://cdn.hcharts.cn/highmaps/highmaps.js