anychart.onDocumentReady(function () {
var chart = anychart.line();
var xZoom = chart.xZoom();
xZoom.setToPointsCount(6);
var startRatio = xZoom.getStartRatio();
var endRatio = xZoom.getEndRatio();
chart.title("The chart shows the part from " + startRatio + " to " + endRatio);
chart.xScroller().listen("scrollerchangefinish", function(e){
var startRatio = e.startRatio;
var endRatio = e.endRatio;
chart.title("The chart shows the part from " + startRatio + " to " + endRatio);
var series = chart.line(getData());
series.name("Total support requests");
chart.xAxis().title("Hours");
chart.yAxis().title("Support requests");
chart.container("container");