HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart() {
let config = {
title: "World GDP Per Capita Historical Values",
width: "800",
height: "600",
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 2,
countryFlags: true,
measures: [{ title: "GDP Per Capita", prefix: "$", description: "GDP per capita is the sum of gross value added by all resident producers in the economy plus any product taxes (less subsidies) not included in the valuation of output, divided by mid-year population." }],
dataCSVURL: "/charts/examples/world-gdp.csv"
}
kyubitTimeCharts.showBarChart("chartDiv", config);
}
Learn more about
Animated Bar Chart API.