fixed chart_type handling in Chart __init__