+ * @private
+ * @param { Object } p The point to consider, valid points are {x, y} objects
+ * @return { Boolean } Whether the point has numeric x and y.
+ */
+Dygraph.isValidPoint = function(p) {
+ if (!p) return false; // null or undefined object
+ if (isNaN(p.x) || p.x === null || p.x === undefined) return false;
+ if (isNaN(p.y) || p.y === null || p.y === undefined) return false;
+ return true;
+};
+
+/**