Quote:
I want to draw the line containing nearly 1000000 points and also wants to do this rendering within 1 second.
Don't do it !
Instead, draw the data 1 time, take a picture, save it on server, and just send the picture to the client.
Another way is to reduce the number of points to speedup rendering.