HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart() {
let config = {
let config = {
title: "World Fertility Rate Historical Values 1950 - 2021",
width: "800",
height: "600",
darkMode: true,
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 3,
maxItemsPerTransition: 12,
countryFlags: true,
measures: [{ title: "Fertility Rate" }],
dataCSVURL: "/charts/examples/world-fertility-gdp-population.csv"
}
}
kyubitTimeCharts.showBarChart("chartDiv", config);
}
Learn more about
Animated Bar Chart API.