Javascript canvas line graph smooth curve I have the following graph draw from array data. I want to use plain javascript, no libraries.