fixed validating chartData issue