[Chartjs]-What is output format of Utils? (using chartjs in vanillajs, not react/angular)

1๐Ÿ‘

โœ…

As can be read here in the documentation. The datastructure for bubble charts consists out of an array containing objects where each object has an x key for the x value, an y key for the y value and a r key for the radius.

{
    // X Value
    x: number,

    // Y Value
    y: number,

    // Bubble radius in pixels (not scaled).
    r: number
}
const data = [{x: 5, y: 7, r: 9}, {x: 6, y: 3, r: 1}];

Leave a comment