Drawing grid for the line graph on canvas