Skip to content

Scatter Plot

Info - How to setup Vizzu

In HTML, create a placeholder element that will contain the rendered chart.

<html>
 <body>
  <div id="myVizzu">
  </div>
 </body>
</html>

In JavaScript, initialize and configure the chart:

import Vizzu from 'https://cdn.jsdelivr.net/npm/vizzu@0.10/dist/vizzu.min.js'
import {
    data
} from 'https://lib.vizzuhq.com/0.10/assets/data/chart_types_eu.js'

let chart = new Vizzu('myVizzu')

chart.initializing

chart.animate({
    data
})

This Vizzu animation has 4 simple steps (4 animates):

1st: replace the Measure on the X-axis to the Dimension whitch is on the Lightness channel

2nd: back

3rd: replace the Measure on the Y-axis to the Dimension whitch is on the Noop channel

4th: back

chart.animate({
    config: {
        "channels": {
            "x": "Value 5 (+/-)",
            "y": "Value 6 (+/-)",
            "noop": "Joy factors",
            "lightness": "Year"
        },
        "geometry": "circle"
    }
});

chart.animate({
    config: {
        "channels": {
            "x": "Year"
        },
        "orientation": "horizontal"
    }
});

chart.animate({
    config: {
        "channels": {
            "x": "Value 5 (+/-)"
        }
    }
});

chart.animate({
    config: {
        "channels": {
            "y": "Joy factors",
            "noop": null
        },
        "orientation": "vertical"
    }
});

chart.animate({
    config: {
        "channels": {
            "y": "Value 6 (+/-)",
            "noop": "Joy factors"
        }
    }
});

chart.feature('tooltip', true);