Different way of getting data to chart