0

我们可以用 highstock 做一个气泡图吗?如果是,我需要帮助,因为我做到了,但它没有用:

       $(function () {
         $('#container').highcharts('StockChart',{

            chart: {
                type: 'bubble',

            },

            title: {
                text: 'Highcharts Bubbles'
            },

            series: [{
                data: [[Date.UTC(1970,  9, 27),97,36,79],
                [Date.UTC(1970, 10, 10),94,74,60],
                [Date.UTC(1970, 10, 18),68,76,58],
                ]
            }]

        });
        });

谢谢你

4

1 回答 1

5

您必须使用:

<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script> 

jsFiddle:http: //jsfiddle.net/b826C/7/

$(function() {
    var chart = new Highcharts.Chart({

        chart: {
            renderTo: 'container',
            type: 'bubble'
        },
        scrollbar: {
            enabled: true
        },
        navigator:{
            enabled:true
        },
        rangeSelector: {
            enabled:true
        },
        series: [{
            name: 'Bubble Highstock',
            data: [[Date.UTC(1970,  9, 27),36,79],[Date.UTC(1970, 10, 10),74,60],[Date.UTC(1970, 12, 20),76,58]]
        }]
    });
});
于 2013-05-03T14:46:17.410 回答