Bubble chart with different tooltips - Javascript highcharts

Javascript examples for highcharts:Bubble Chart

Description

Bubble chart with different tooltips

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Stock Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {/*w  ww.  j  a  v a2 s. c om*/
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'bubble'
        },
        xAxis: {
            //max:2,
            //categories:['first','second','third','fourth']
        },
        scrollbar: {
            enabled: true
        },
        navigator: {
            enabled: true
        },
        rangeSelector: {
            enabled: true
        },
        tooltip:{
            pointFormat: '{series.name}: <b>{point.y}</b><br/> {point.name}'
        },
        series: [{
            name: 'USD to EUR',
            data: [{
                name: 'any words 1',
                x: Date.UTC(1970, 9, 27),
                y: 2.07,
                z: 1
            }, {
                name: 'any words 2',
                x: Date.UTC(1970, 9, 27),
                y: 1.03,
                z: 1
            }]
        }]
    });
});

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

Related Tutorials