implments to drawing line chart.