draw a line chart