plotting the chart