Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.