StyleCode Property: axisMax

axisMax

Specifies the highest value on an axis.

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

Examples

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

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

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

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

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

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

Details

A value of max indicates that the lowest value max(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 latest 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 maximum. However, if an explicit numerical value is provided that is below max(values) (which would cause some values to be outside the range), it is replaced with max(values) so that all values remain in the range (this is not the case for date values).