using min max on logarithmic axis lack minor ticks grid - Javascript highcharts

Javascript examples for highcharts:Chart Axis

Description

using min max on logarithmic axis lack minor ticks grid

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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {//  w w  w.j  a va  2  s . c  om
        $('#container').highcharts({
            chart: {
                alignTicks: false
            },
            title: {
                text: 'Logarithmic axis demo'
            },
            xAxis: {
                tickInterval: 1
            },
            yAxis: {
                endOnTick: false,
                type: 'logarithmic',
                minorTickInterval: 0.1,
                min: 1,
                max: 1000,
                labels:{
                    formatter:function(){
                        return Highcharts.numberFormat(this.value,0);
                    }
                }
            },
            tooltip: {
                headerFormat: '<b>{series.name}</b><br />',
                pointFormat: 'x = {point.x}, y = {point.y}'
            },
            series: [{
                data: [1, 2, 4, 8, 16, 32, 64, 128, 256],
                pointStart: 1
            }]
        });
    });

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

Related Tutorials