fixed data retrieval for LineChart