anychart.onDocumentReady(function () {
var chart = anychart.sparkline([1, 4, -7, 1, -3, 6, -8, 3]);
chart.negativeFill("#4CAF50", 0.4);
chart.title({text: "Set fill with opacity for negative points", orientation: "top"});
chart.container("container");