Extracting data logic to ZZChartData