highcharts 插件问题

Uncaught TypeError: $(...).highcharts is not a function

解决方法:

$('#container').highcharts({
        colors: ["#7cb5ec", "#f7a35c"],
        chart: {
            type: 'column'
        },
        /* ... */
var chart = new Highcharts.Chart({
                colors: ["#7cb5ec", "#f7a35c"],
                chart: {
                    type: 'column',
                    renderTo: 'container'
                },
                /* ... */

使用

var chart = new Highcharts.Chart({取代
$('#container').highcharts({方式
posted @ 2017-01-04 11:47  逍遥无名  阅读(465)  评论(0编辑  收藏  举报