<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.2, value: 2},
{x: 2.3, value: 6},
{x: 3.4, value: 4},
{x: 4.1, value: 8}
]);
series.markers(true);
// Set hover markers.
series.hoverMarkers({type: "star7", fill: "#F44336", size: 10});
chart.title("Set hover markers parameters as an object");
chart.container("container");
chart.draw();
series.hover([1, 3])
});