made it so live data can be used when creating the graph