anychart.onDocumentReady(function () {
var chart = anychart.sparkline([50, 5, 10, 60, 20, 70, 30]);
chart.maxFill(["#F44336", "#FFEB3B"], 45, true, 0.5);
chart.title({text: "Set fill as a linear gradient for the maximum point", orientation: "top"});
chart.container("container");