HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart() {
let config = {
title: "World Median Age, Fertility Rate, and Population Historical Values",
width: "800",
height: "600",
darkMode: true,
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 2,
measures: [{ title: "Median Age" },
{ title: "Fertility Rate" },
{ title: "Population" }],
dataCSVURL: "/charts-lib/examples/world-median-age-fertility-rate-population.csv"
}
kyubitTimeCharts.showBubbleChart("chartDiv", config);
}
Learn more about
Animated Bubble Chart API.