LineChart.Axis.Range

Axis ranges and data ranges

Considering the following data:

data =
[ { x = -1, y = -2 }
, { x = 5, y = 6 }
]

From this we can see that the smallest x is -1 and the largest x is 5. We
call this the x-data range. By default, the axis range is the same as your
data range, but we can make it far more complicated than that.

Opposite your data range which is only calculated from from your data,
your axis range can be edited with this module. For example, you can make
it larger than your data range, as illustrated below.

Notice how the data range begins and ends where the pink line begins and ends.

This is cool because it looks good. You can also make the axis range
smaller than the data range, and the result will we a "zoomed in" view of
one section of the data, which can also be useful.

Take a look at some of these functions if these effects interests you.

type alias Config =
Range.Config

First of all, this configuration is part of the
configuration in Axis.custom.