jweir / charter / Charter.Extras

Additional functions to help in generating the graphs.

Definition

minMax : Axes -> List ( Basics.Float, Basics.Float ) -> ( Basics.Float, Basics.Float )

Returns the min and max value for the given Axis. An empty list will return (0,0)


type Axes
    = X
    | Y

Descibes which axes on the graph or from the data to use.

step : Step -> List ( Basics.Float, Basics.Float ) -> List ( Basics.Float, Basics.Float )

step modifies the input data so it will be drawn with a step on the Y axis.


type Step
    = Before
    | After

Defines where the step will occur