与highstock的泡沫图表

时间:2013-05-03 01:05:29

标签: highcharts highstock bubble-chart

我们能用高压做泡沫图吗?如果是的话我需要帮助,因为我这样做但是没有用:

       $(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],
                ]
            }]

        });
        });

谢谢

1 个答案:

答案 0 :(得分: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]]
        }]
    });
});