Fixed graphs wrong area height on resize,also cleaned some unused
code