add the chart part