fix chart type.