Different Shapes for Bubble Chart - Javascript highcharts

Javascript examples for highcharts:Bubble Chart

Description

Different Shapes for Bubble Chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
$(function () {//from   www.j  av  a2  s .  co m
    $('#container').highcharts({
        chart: {
            type:'scatter',
            zoomType: 'xy'
        },
        title: {
            text: 'Highcharts Bubbles'
        },
        series: [{
            marker: {
                radius:5,
                symbol: 'triangle'
            },
            data: [
                [97, 36],
                [94, 74]
            ]
        }, {
            marker: {
                radius:5,
                symbol: 'circle'
            },
            data: [
                [25, 10],
                [2, 75]
            ]
        }, {
             marker: {
                radius:5,
                symbol: 'diamond'
            },
            data: [
                [47, 47],
                [20, 12]
            ]
        }]
    });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
      <script src="https://code.highcharts.com/modules/exporting.js"></script> 
      <div id="container" style="height: 400px; min-width: 310px; max-width: 600px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials