HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart() {
let config = {
title: "NASDAQ Historical Values, Top 30 Companies",
width: "800",
height: "600",
darkMode: true,
numberOfDecimals: 2,
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 2,
logarithmicXaxis: true,
logarithmicYaxis: true,
measures: [{ title: "Market Cap", prefix: "$" },
{ title: "Revenue", prefix: "$" },
{ title: "Trading Volume", prefix: "$" }],
dataCSVURL: "/charts-lib/examples/NASDAQ-historical.csv"
}
kyubitTimeCharts.showBubbleChart("chartDiv", config);
}
Learn more about
Animated Bubble Chart API.