indicatrix/elm-chartjs-webcomponent/2.0.1

NOTE: the latest version is 3.0.0

Chartjs.Options.Title

type alias Title =
{ display : Maybe Bool
, align : Maybe Align
, position : Maybe Position
, padding : Maybe Int
, text : Maybe String
, font : Maybe FontSpec
, color : Maybe Color
}

The Title is text that is drawn outside of the Chart

defaultTitle : Title

Create a blank title object

setDisplay : Bool -> Title -> Title

Is the title shown?

setAlign : Align -> Title -> Title

Text alignment of the title

setPosition : Position -> Title -> Title

Position of the title

setPadding : Int -> Title -> Title

Padding (in pixels) above and below the title text

setText : String -> Title -> Title

Title text to be displayed

setFont : FontSpec -> Title -> Title

Font properties to use for the title text

setColor : Color -> Title -> Title

Color for the title text