indicatrix/elm-chartjs-webcomponent/1.0.0

NOTE: the latest version is 3.0.0

Chartjs.Options.Title

type alias Title =
{ display : Maybe Bool
, position : Maybe Position
, fontSize : Maybe Int
, fontFamily : Maybe String
, fontColor : Maybe Color
, fontStyle : Maybe String
, padding : Maybe Int
, lineHeight : Maybe String
, text : Maybe String
}

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?

setPosition : Position -> Title -> Title

Position of the title

setFontSize : Int -> Title -> Title

Size of the title text

setFontFamily : String -> Title -> Title

Font family for the title text

setFontColor : Color -> Title -> Title

Font color for the title text

setFontStyle : String -> Title -> Title

Font style for the title text eg. normal, bold, italic

setPadding : Int -> Title -> Title

Padding (in pixels) above and below the title text

setLineHeight : String -> Title -> Title

Height of each individual line of text See https://developer.mozilla.org/en-US/docs/Web/CSS/line-height

setText : String -> Title -> Title

Title text to be displayed