added fucction to plot a single chart