anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
var chart = anychart.line();
chart.title("Move the Mouse Over the Chart to Add New Points\nDoubleClick to Remove Listeners");
var xAxis = chart.xAxis();
xAxis.staggerMode(false);
var func_listen = function() {
value : Math.floor((Math.random() * 500)+ 1)
chart.listen("mouseMove", func_listen);
chart.listen("click", function() {
chart.title("Clicks: "+ counter);
chart.listen("dblclick", function() {
chart.removeAllListeners();
chart.container("container");