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

Types for managing element configuration, see https://www.chartjs.org/docs/latest/configuration/elements.html


type alias Arc =
{ backgroundColor : Maybe Color
, borderColor : Maybe Color
, borderWidth : Maybe Basics.Int 
}

Arc |


type alias Elements =
{ point : Maybe Point
, line : Maybe Line
, rectangle : Maybe Rectangle
, arc : Maybe Arc 
}

Elements |


type alias Line =
{ tension : Maybe Basics.Float
, backgroundColor : Maybe Color
, borderWidth : Maybe Basics.Int
, borderColor : Maybe Color
, borderCapStyle : Maybe Chartjs.Common.LineCap
, borderDash : Maybe (List Basics.Int)
, borderDashOffset : Maybe Basics.Int
, borderJoinStyle : Maybe Chartjs.Common.LineJoin
, capBezierPoints : Maybe Basics.Bool
, fill : Maybe LineFill
, stepped : Maybe Basics.Bool 
}

Line |


type LineFill
    = Zero
    | Top
    | Bottom
    | NoFill

LineFill |


type alias Point =
{ radius : Maybe Basics.Int
, pointStyle : Maybe Chartjs.Common.PointStyle
, rotation : Maybe Basics.Int
, backgroundColor : Maybe Color
, borderWidth : Maybe Basics.Int
, borderColor : Maybe Color
, hitRadius : Maybe Basics.Int
, hoverRadius : Maybe Basics.Int
, hoverBorderWidth : Maybe Basics.Int 
}

Point |


type alias Rectangle =
{ backgroundColor : Maybe Color
, borderWidth : Maybe Basics.Int
, borderColor : Maybe Color
, borderSkipped : Maybe Chartjs.Common.Position 
}

Rectangle |

defaultElements : Elements

defaultElements |

defaultPoint : Point

defaultPoint |