Home â€º docs â€º charts â€º chart options (reference) â€º axisY â€º minimum

minimum: Number

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.
• While setting minimum, it should be taken care that maximum should be greater than minimum.

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

1. i find answer ))

axisY: {interval: 0.5,
minimum: 3,
maximum: 4.5},

first i maked mistake, by adding this code in data: [ ] , when i do it befor data:[ ], it works :)

2. what if I only want to put tickMarks on a specified minimum and maximum but i still want to show the rest of the graph beyond the maximum and below minimum?

3. PK says:

not working for me. Candle stick chart. Y values are double 0.5 to 1.5. I set
asixY: {
interval: 0.1,
minimum: 0.3,
maximum: 1.8,
valueFormatString: “0.0000”
},
so it shows asix Y 0 to 2 with interval 0.5

• Anjali says:

Sorry, but we are not able to reproduce the issue at our end. Can you please create a jsfiddle and post it in our forum?

• PK says:

sorry, my mistake. “asixY” instead of “axisY”

4. miechuliv says:

How can i reverse Y axis eg. I want minimum value 100 and maximum value 1 ?

• Anjali says:

This feature is not available yet but we are considering the same for future versions.

• Jockzan says:

do you have some news?

5. John says:

Doesn’t seem to auto calculate the minimum for me, it’s always 0, which means i have a line way at the top (data has a minimum of around 70, and max of 78).

• Anjali says:

John,

You should set includeZero to false to get the required behaviour.

• John says:

Thanks for the suggestion. I set includeZero to false on axisY but nothing changed. :(

• John says:

Nevermind, it is working, I forgot there were some 0’s in my data for that period causing the axis range to auto down to zero. Thanks!

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