I am using this example to build my chart. The chart doesn't update when the user minimises the browser or when open new tab.
This behaviour can be observed in the below link also.
https://jsfiddle.net/kvjawptr/4/
if (lineToDraw === ".line1") {
clipRect1.attr("width", increment);
clipRect2.attr("width", newWidth);
clipRect2.attr("transform", "translate(" + increment + ", 0)");
} else {
clipRect2.attr("width", increment);
clipRect1.attr("width", newWidth);
clipRect1.attr("transform", "translate(" + increment + ", 0)");
}
How can i continuously update the chart even when the DOM is not in view.