<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.polar();
var series = chart.polygon([
{x: 0, value: 2},
{x: 1, value: 1},
{x: 2, value: 2},
{x: 3, value: 3},
{x: 4, value: 2},
{x: 5, value: 1}
]);
// Set fill.
series.fill(function () {
return this.sourceColor + ' 0.5';
});
chart.title('Set fill parameter as a function');
chart.container('container');
chart.draw();