Another way of getting data and displaying charts