made chart type a dropdown