saved chart on the scope so it can be reused on new data, rather than calling addGraph repeatedly

parseInt current width and height