anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
var chart = anychart.line();
chart.title("Click on the Chart to Add New Points");
var xAxis = chart.xAxis();
xAxis.staggerMode(false);
chart.listen("click", function() {
value : Math.floor((Math.random() * 500)+ 1)
chart.container("container");