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.

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

    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.

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

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

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

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