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 Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question