HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart() {
let config = {
title: "Europe GDP Per Capita, Fertility Rage and Population Historical Values (1990-2021) with Flags",
description: "Example of the chart with images instead of bubbles. European countries by GDP Per Capita, Fertility Rage and Population Historical values with flags",
width: "800",
height: "600",
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 1,
autoPlay: false,
countryFlags: true,
measures: [{ title: "GDP Per Capita", prefix: "$" }, { title: "Fertility Rate" }, { title: "Population" }],
dataCSVURL: "/charts/examples/Europe-gdp-fert-pop.csv"
}
kyubitTimeCharts.showBubbleChart("chartDiv", config);
}
Learn more about
Animated Bubble Chart API.