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 chart or a bubble chart.

    The following values are supported:

    • 'circle'
    • 'cross'
    • 'crossRot'
    • 'line'
    • 'rect'
    • 'rectRounded'
    • 'rectRot'
    • 'triangle'
      If the value is an image, that image is drawn on the canvas using .

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

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

    Global rectangle options: Chart.defaults.global.elements.rectangle

    Global arc options: Chart.defaults.global.elements.arc.