I have an Angular application as UI which generates Time series trend chart using Chart.js. The trend chart is a separate component and data is inserted into chart from a different component.
Problem:
When the UI gets loaded, the trend chart takes time to load up and also slows down the as one month of data is shown in a single trend chart.
Possible way of solving:
One way, I'm thinking is to show only 1 or 2 weeks of data in the trend chart the use pan to get other days of month data.
Help needed:
Implementing the above situation is where I'm stuck at. When I try to implement the pan functionality it works on the y axis and not on the x-axis, maybe I do need to write some functions to get other days of month data while panning left or right.