StyleCode Property: axisMin

axisMin

Specifies the lowest value on an axis.

Applies toTypeDefault
barchart > vaxis > left
barchart > vaxis > right
linechart > haxis
linechart > vaxis
plot > haxis
plot > vaxis
date,number,auto,minauto

Examples

// Example: barchart > vaxis > left
{ vaxis { left { axisMin: auto } } }
show barchart "My Chart" a1b6 with
  sum(Quantity)
  group by Category

// Example: barchart > vaxis > right
{ vaxis { right { axisMin: auto } } }
show barchart "My Chart" a1b6 with
  sum(Quantity)
  group by Category

// Example: linechart > haxis
{ haxis { axisMin: auto } }
show linechart "My Chart" a1b6 with
  Day.StockOnHand
  Day.StockOnOrder

// Example: linechart > vaxis
{ vaxis { axisMin: auto } }
show linechart "My Chart" a1b6 with
  Day.StockOnHand
  Day.StockOnOrder

// Example: plot > haxis
show plot "My Plot" a1d4 with
  Sales.Quantity
  Sales.Discount { axisMin: auto }

// Example: plot > vaxis
{ vaxis { axisMin: auto } }
show plot "My Plot" a1d4 with
  Sales.Quantity
  Sales.Discount

Details

A value of min indicates that the lowest value min(values) should be used. The considered values include areaTo or the consequence of stacking bars with a stack seriesType. For the horizontal axis of a linechart, this will be the earliest date for which a value is provided (even if that value is zero).

A value of auto is usually the same as min(values), except:

An explicit value just uses that minimum. However, if an explicit numerical value is provided that is above min(values) (which would cause some values to be outside the range), it is replaced with min(values) so that all values remain in the range (this is not the case for date values).