logarithmBase: Number

Sets the logarithm base for Axis X. 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",
{
 .
 .
 axisX:{
   .
   .
   logarithmic: true,
   logarithmBase:  2,
   .
   .
 },
 .
 . 
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



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