<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.scatter(
[
{x: 2.1, value: 1},
{x: 3.1, value: 2},
{x: 4.0, value: 3}
],
{x: 2.3, value: 2},
{x: 3.4, value: 3},
{x: 4.3, value: 4}
{x: 2.1, value: 3},
{x: 3.1, value: 4},
{x: 4.2, value: 1}
{x: 2.4, value: 4},
{x: 3.7, value: 1},
{x: 4.0, value: 2}
]
);
// Removes series by index.
chart.removeSeriesAt(0);
chart.title('Remove series by index');
chart.container('container');
chart.draw();
});