minimum: Number/Date/Timestamp

Sets the minimum value of Axis. Values smaller than minimum are clipped. minimum also sets the lower limit while panning chart.


Default: Automatically Calculated based on the data
Example: 100, 350..

Notes
  • If minimum value is not set, it is automatically calculated based on given data.
  • While setting minimum, it should be taken care that maximum is greater than minimum.
  • minimum supports dateTime values in the form of Date object or a timeStamp.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
   minimum: 150,
 },
 .
 . 
});
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.

Comments 12

  1. Is it possible to change the minimum and maximum dynamically? Tried it with variables as values but if variable change and chart is rendered the minimum and maximum aren’t renewed.

  2. Is there a callback function to get the min and max values? For example, i pass in all the data and since the min and max is being calculated anyway, can I retrieve those values?

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.