<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.sparkline([9, -6, 4, -5, 6, 5, -4, -1, 0, -5, 1, -8, 7, -6, 4]);
// Set labels for negative point.
chart.negativeLabels({fontSize: 15, fontColor: "#808080"});
chart.title({text: "Set labels parameters as an object for negative points", orientation: "top"});
chart.container("container");
chart.draw();
});