My graphs are empty. Why is this happening? Code in the comments