made chart-type input more specific