Dygraph.pageX = function(e) {
    if (e.pageX) {
        return (!e.pageX || e.pageX < 0) ? 0 : e.pageX;
    } else {
        var de = document;