<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.scatter();
var series = chart.line([
{x: 1, value: 0},
{x: 2, value: 20},
{x: 3, value: 10},
{x: 4, value: 30},
{x: 5, value: 20},
{x: 6, value: 40},
{x: 7, value: 30},
{x: 8, value: 50},
{x: 9, value: 40},
{x: 1, value: 0}
]);
series.stroke('3 #008b00');
series.negativeStroke('3 #ff4040');
// Set baseline value
chart.baseline(30);
chart.title('Set baseline value');
chart.container('container');
chart.draw();
});