Adding the chart feature