added chart_type and constants