terezka/line-charts/2.0.2

LineChart.Interpolation

Interpolation is the the kind of line which is drawn between your data points. It's meant to be a guide to where your data point would actually be if you had more data. It's not just for looks!

type alias Config =
Config

Use in the LineChart.Config passed to LineChart.viewCustom.

chartConfig : LineChart.Config Data msg
chartConfig =
  { ...
  , interpolation = Interpolation.default
  , ...
  }
default : Config

The vanilla of interpolations: linear.

linear : Config

A linear interpolation.

monotone : Config

A monotone-x interpolation.

stepped : Config

A stepped interpolation where the step comes after the dot.