henne90gen/elm-pandas-visualization/6.0.0

NOTE: the latest version is 7.0.2

LineChart

This module takes care of drawing line charts

Create line charts

{ dimensions : ( Float, Float )
, lineType : LineType
, xFunc : XValueMapper a
, lines : List (LineConfig a)
, dataFrame : DataFrame a
, xAxisLabel : Maybe String
, yAxisLabel : Maybe String
, yMin : Maybe Float
, yMax : Maybe Float
}
-> Svg msg

Creates a line chart with multiple lines

Create interactive line charts

{ dimensions : ( Float, Float )
, lineType : LineType
, xFunc : XValueMapper a
, lines : List (LineConfig a)
, dataFrame : DataFrame a
, xAxisLabel : Maybe String
, yAxisLabel : Maybe String
, yMin : Maybe Float
, yMax : Maybe Float
, cursor : CursorConfig
, model : Model
, msgMapper : Msg -> msg
}
-> Svg msg

Creates an interactive line chart with multiple lines

initialModel : String -> Model

Initializes the model

update : Msg -> Model -> ( Model, Cmd Msg )

Updates the model with the given message

subscriptions : Model -> Sub Msg

Subscribes to various events to allow interactive charts to function properly

type alias Model =
{ id : String
, chartSize : ( Float, Float )
, mousePosition : Maybe MousePosition
}

Model for the internal state for interactive charts

type Msg

Msg object to allow interactions with an interactive chart