blissfully / elm-chartjs-webcomponent / Chartjs.Options.Tooltips

Types for managing tooltip configuration


type alias Tooltips =
{ enabled : Maybe Basics.Bool
, mode : Maybe Mode
, intersect : Maybe Basics.Bool
, position : Maybe PositionMode
, callbacks : Maybe Callbacks
, backgroundColor : Maybe Color
, titleFontFamily : Maybe String
, titleFontSize : Maybe Basics.Int
, titleFontStyle : Maybe String
, titleFontColor : Maybe Color
, titleSpacing : Maybe Basics.Int
, titleMarginBottom : Maybe Basics.Int
, bodyFontFamily : Maybe String
, bodyFontSize : Maybe Basics.Int
, bodyFontStyle : Maybe String
, bodyFontColor : Maybe Color
, bodySpacing : Maybe Basics.Int
, footerFontFamily : Maybe String
, footerFontSize : Maybe Basics.Int
, footerFontStyle : Maybe String
, footerFontColor : Maybe Color
, footerSpacing : Maybe Basics.Int
, footerMarginTop : Maybe Basics.Int
, xPadding : Maybe Basics.Int
, yPadding : Maybe Basics.Int
, caretPadding : Maybe Basics.Int
, carretSize : Maybe Basics.Int
, cornerRadius : Maybe Basics.Int
, multiKeyBackground : Maybe Color
, displayColors : Maybe Basics.Bool
, borderColor : Maybe Basics.Bool
, borderWidth : Maybe Basics.Int 
}

Tooltips |


type PositionMode
    = PositionModeAverage
    | PositionModeNearest

PositionMode |


type Mode
    = Point
    | Nearest
    | Index
    | DataSet
    | X
    | Y

Mode |


type alias Callbacks =
{ label : Maybe String }

Callbacks |

defaultCallbacks : Callbacks

Default Callbacks |