Created
July 25, 2018 00:04
-
-
Save apexdodge/64131395d84470ad40eaea716f709efd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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