Elements

    The element options can be specified per chart or globally. The global options for elements are defined in . For example, to set the border width of all bar charts globally you would do:

    Point elements are used to represent the points in a line, radar or bubble chart.

    Namespace: options.elements.point, global point options: Chart.defaults.elements.point.

    Types

    Info

    When a string is provided, the following values are supported:

    • 'circle'
    • 'cross'
    • 'crossRot'
    • 'line'
    • 'rect'
    • 'rectRounded'
    • 'rectRot'
    • 'star'

    If the value is an image or a canvas element, that image or canvas element is drawn on the canvas using drawImage (opens new window).

    Line elements are used to represent the line in a line chart.

    Bar elements are used to represent the bars in a bar chart.

    Namespace: options.elements.bar, global bar options: Chart.defaults.elements.bar.

    Arcs are used in the polar area, doughnut and pie charts.