HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart() {
let config = {
title: "Cryptocurrency History",
width: "800",
height: "600",
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 2,
logarithmicXaxis: true,
logarithmicYaxis: true,
circleBorder: true,
measures: [{ title: "Price", prefix: "$" }],
dataCSVURL: "/charts/examples/cryptocurrency-historical-price.csv",
}
config.width = document.getElementById("chartDiv").clientWidth;
config.height = document.getElementById("chartDiv").clientWidth * 0.6;
kyubitTimeCharts.showBarChart("chartDiv", config);
}
Learn more about
Animated Bar Chart API.