Bubble Chart

    The bubble chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of the bubbles is generally set this way.

    label defines the text associated to the dataset and which appears in the legend and tooltips.

    All these values, if undefined, fallback to the associated options.

    The interaction with each bubble can be controlled with the following properties:

    We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at Chart.defaults.bubble.

    Bubble chart datasets need to contain a data array of points, each points represented by an object containing the following properties:

    1. {
    2. // X Value
    3. x: <Number>,
    4. y: <Number>,
    5. // Bubble radius in pixels (not scaled).
    6. r: <Number>
    7. }