Skip to content

Instantly share code, notes, and snippets.

@bootleg224
Created August 6, 2018 19:27
Show Gist options
  • Save bootleg224/48a0c2c76d2d331d1dc7af0f32acdbdc to your computer and use it in GitHub Desktop.
Save bootleg224/48a0c2c76d2d331d1dc7af0f32acdbdc 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