create ChartData class