added chart type selection