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