showing extra labels multiple times in x-Axis in bubble chart - Javascript highcharts

Javascript examples for highcharts:Bubble Chart

Description

showing extra labels multiple times in x-Axis in 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 w  ww . j  a  va2  s.  c  o m
    $('#container').highcharts({
        chart: {
            type: 'bubble',
            zoomType: 'xy'
        },
        title: {
            text: 'Highcharts Bubbles'
        },
        xAxis: {
            startOnTick: true,
            endOnTick:true,
            tickInterval: 24 * 3600 * 1000,
            labels: {
                formatter: function () {
                    return Highcharts.dateFormat('%m/%d/%Y', this.value);
                }
            }
        },
        series: [{
            data: [{
                x: 1437416876595,
                y: 10,
                z: 34435
            }, {
                x: 1437503398847,
                y: 60,
                z: 24435
            }]
        }]
    });
});

      </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="min-width: 310px; height: 400px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials