add dynamic bar chart and scatter plot