Updated chartpanel class to allow for 2 graphs