add error in the chart