From: Brent Walther Date: Tue, 1 Jul 2014 22:57:17 +0000 (-0700) Subject: Add Dygraph.PointType to dygraph-types X-Git-Tag: v1.1.0~52^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=7af51ec0ce747cac5a0eb71d0af9444c5c479218;p=dygraphs.git Add Dygraph.PointType to dygraph-types Add the Dygraph.PointType type to the dygraph-types externs file. This type is used when defining a clickCallback function and must be defined in order to satisfy the Google Closure compiler. --- diff --git a/dygraph-types.js b/dygraph-types.js index 4e90693..c8d6e04 100644 --- a/dygraph-types.js +++ b/dygraph-types.js @@ -14,3 +14,27 @@ */ var DygraphInteractionContext; +/** + * Point structure. + * + * xval_* and yval_* are the original unscaled data values, + * while x_* and y_* are scaled to the range (0.0-1.0) for plotting. + * yval_stacked is the cumulative Y value used for stacking graphs, + * and bottom/top/minus/plus are used for error bar graphs. + * + * @typedef {{ + * idx: number, + * name: string, + * x: ?number, + * xval: ?number, + * y_bottom: ?number, + * y: ?number, + * y_stacked: ?number, + * y_top: ?number, + * yval_minus: ?number, + * yval: ?number, + * yval_plus: ?number, + * yval_stacked + * }} + */ +Dygraph.PointType;