<!doctype html>
<html>
<head>
<script src="//cdn.anychart.com/js/7.4.0/anychart.min.js"></script>
<style>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="container"></div>
<script type="text/javascript">
anychart.onDocumentReady(function() {
//create pie chart with passed data
chart = anychart.pie([
['Product A', 1222],
['Product B', 2431],
['Product C', 3624],
['Product D', 5243],
['Product E', 8813]
]);
//set container id for the chart
chart.container('container');
chart.stroke(null);
//set chart title text settings
chart.title().text('Pie Chart');
//set chart predefined aqua style
chart.fill('aquaStyle');
//create range color palette with color ranged between light blue and dark blue
var palette = anychart.palettes.rangeColors();
palette.colors([
{color: '#E6F2F4'},
{color: '#5B858D'}
]);
//set palette to the chart
chart.palette(palette);
//initiate chart drawing
chart.draw();
});
</script>
</body>
</html>