It is necessary to build a line graph on a page that contains approximately one million (+ - 1000) points. The best option is to depict only a part of the points and, when approaching, take a more detailed part. Matlab does this with ease. Is it possible to do this on the page using js or any other language?

0