Skip to content

Instantly share code, notes, and snippets.

@apexdodge
Created July 25, 2018 00:04
Show Gist options
  • Save apexdodge/64131395d84470ad40eaea716f709efd to your computer and use it in GitHub Desktop.
Save apexdodge/64131395d84470ad40eaea716f709efd to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://cdn.anychart.com/releases/8.3.0/js/anychart-base.min.js"></script>
<style>
#container {
min-width: 800px;
max-width: 800px;
height: 400px;
margin: 0 auto
}
</style>
</head>
<body>
<div id="container"></div>
<script>
// create data
var data = [
["January", 10000],
["February", 12000],
["March", 18000],
["April", 11000],
["May", 9000]
];
// create a chart
chart = anychart.area();
// create an area series and set the data
var series = chart.area(data);
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment