This is the configuration for the independent axis of a blocks chart. It is not used for the dots or line charts.
The values of an independent variable are chosen and often controlled by the investigator, who then observes the effect of each independent variable on a dependent variable. The dependent variable takes different values in response to the values of the independent variable that are chosen by the investigator.
Blocks charts are for data where the independent variable is a discrete variable. Imagine you have a chart where you plot countries against their GDP. In this case the countries are the discrete values.
In a blocks chart where the blocks are vertical (a column chart), the independent axis is the x-axis. In a horizontal blocks chart (a bar chart), the independent axis is the y-axis.
Internal.Axis.Independent.Config data msg
The default configuration. Pass the title and the unit of the axis.
Chart.Blocks.viewCustom
{ ...
, independentAxis = Chart.Axis.Independent.default "Country" .country
, ...
}
default : String -> (data -> String) -> Config data msg
custom : Properties data msg -> Config data msg