added method for get chart data