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([50, -15, 10, 60, 20, 70, -30]);
3
chart.seriesType('column');
4
5
// Get markers for negative points.
6
var negativeMarkers = chart.negativeMarkers();
7
negativeMarkers.enabled(true);
8
negativeMarkers.size(5);
9
negativeMarkers.fill('#4CAF50');
10
11
chart.title({text: 'Get and modify markers for negative points', orientation: 'top'});
12
chart.container('container');
13
chart.draw();
14
});