HTML/JavaScript Code
The HTML elements and JavaScript code used in this example.
...
<div id="chartDiv"></div>
...
function showChart()
{
let config = {
title: "Sales By Month - Male vs Female (Contoso Sample Database)",
width: "800",
height: "600",
thousandsSeparator: ".",
decimalSeparator: ",",
transitionTime: 3,
measures: [{ title: "Sales", prefix: "$"}],
groups: ["Male", "Female"],
showHighest: true,
csvType: "rowItems",
dataCSVURL: "/charts/examples/contosoGender.csv",
}
kyubitTimeCharts.showButterflyChart("chartDiv", config);
}
Learn more about
Animated Butterfly Chart API.