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 Median Age Historical Values 1950 - 2021",
width: "800",
height: "600",
darkMode: true,
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 3,
maxItemsPerTransition: 10,
showAxisImages: true,
countryFlags: true,
measures: [{ title: "Median Age" }],
dataCSVURL: "/charts/examples/world-median-age.csv"
}
}
kyubitTimeCharts.showBarChart("chartDiv", config);
}
Learn more about
Animated Bar Chart API.