logarithmBase: Number

Sets the logarithm base for Axis Y. Works only when logarithm property is set to true.


Default: 10
Options: 2, 16, Math.E, ..

Notes
  • logarithmBase should always be greater than 1.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisY:{
   .
   .
   logarithmic: true,
   logarithmBase:  2,
   .
   .
 },
 .
 . 
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.