The problem is that you do not specify dataLimitFrom
and dataLimitTo
. See https://jsfiddle.net/vxpm4c58/2/ for a working version. Note that you also did not have to create a full copy using JSON for the dataCopy
.
The chart actually issues warnings in cases like yours that you can see in your fiddle:
Data values are not sorted on timestamp in ascending order (timestamp 1447117844000). TimeChart will sort the data automatically but to achieve better performance the data source should be sorted. zoomcharts.js:39
Using preloaded data without specifying `dataLimitFrom` and `dataLimitTo` is not recommended - these values will be implied from the data and might result in invalid behavior. cdn.zoomcharts-cloud.com/1/11/0/zoomcharts.js:39
While the values are correctly implied in the initial load, use of replaceData
manages to fool the chart and thus the automatically implied values are incorrect.