terezka / line-charts / 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 =
Internal.Interpolation.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.

Legends

monotone : Config

A monotone-x interpolation.

Legends

stepped : Config

A stepped interpolation where the step comes after the dot.

Legends