terezka / elm-charts-alpha / Chart.Axis.Dependent

This is the configuration for the dependent axis of a blocks chart. It is not used for the dots or line charts.


type alias Config msg =
Internal.Axis.Dependent.Config msg

default : String -> Internal.Unit.Config -> Config msg

The default configuration. Pass the title and the unit of the axis.

Chart.Blocks.viewCustom
  { ...
  , dependentAxis = Chart.Axis.Dependent.default "Income" Chart.Axis.Unit.dollars
  , ...
  }

custom : Properties msg -> Config msg

Customize your dependent axis. The properties are: