This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
0.0.1

Chart.Interpolation

WARNING! THIS IS AN ALPHA VERSION

IT HAS MISSING, MISLEADING AND PLAIN WRONG DOCUMENTATION. IT HAS BUGS AND AWKWARDNESS. USE AT OWN RISK.

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 = Interpolation.Config

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

chartConfig : Chart.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

module Chart.Interpolation exposing (Config, default, linear, monotone, stepped)

{-|

# WARNING! THIS IS AN ALPHA VERSION

*IT HAS MISSING, MISLEADING AND PLAIN WRONG DOCUMENTATION.*
*IT HAS BUGS AND AWKWARDNESS.*
*USE AT OWN RISK.*

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!

@docs Config, default, linear, monotone, stepped

-}

import Internal.Interpolation as Interpolation


{-| Use in the `Chart.Config` passed to `Chart.viewCustom`.

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

-}
type alias Config =
  Interpolation.Config


{-| The vanilla of interpolations: linear.
-}
default : Config
default =
  linear


{-| A linear interpolation.

<img alt="Legends" width="540" src="https://github.com/terezka/line-charts/blob/master/images/interpolation3.png?raw=true"></src>

-}
linear : Config
linear =
  Interpolation.Linear


{-| A monotone-x interpolation.

<img alt="Legends" width="540" src="https://github.com/terezka/line-charts/blob/master/images/interpolation2.png?raw=true"></src>

-}
monotone : Config
monotone =
  Interpolation.Monotone


{-| A stepped interpolation where the step comes after the dot.

<img alt="Legends" width="540" src="https://github.com/terezka/line-charts/blob/master/images/interpolation4.png?raw=true"></src>

-}
stepped : Config
stepped =
  Interpolation.Stepped