HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.sparkline([1, 4, -7, 1, -3, 6, -8, 3]);
3
4
// Get labels for negative points.
5
var negativeLabels = chart.negativeLabels();
6
negativeLabels.enabled(true);
7
negativeLabels.fontSize(15);
8
9
chart.title({text: 'Get and modify labels for negative points', orientation: 'top'});
10
chart.container('container');
11
chart.draw();
12
});