For reference, I have taken sample code from Mike Bostock’s Line Chart Example. Made few changes to handle touch and mouse move/drag