bubble chart with highstock

ⅰ亾dé卋堺 提交于 2019-12-13 07:14:39

问题


Can we do a bubble chart with highstock ?? if yes i need help please because i do it but it didn't work:

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

        });
        });

thank you


回答1:


You must use:

<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]]
        }]
    });
});


来源:https://stackoverflow.com/questions/16350075/bubble-chart-with-highstock

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!