Fix for graphing in IE and FF