Changed the constructor of Chart/Graph superclass to read the file variables