basic chart drawing
writing drag function
writing drag function