X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=b88e7200f598e17b8ff3b24f4ecb5bec34e91cbb;hb=c715be428d83d80c0a26fd60dc5bc36fb4c908d9;hp=75af59e672d00ad3b4452b05e80d51ceaa1186b3;hpb=0a0885d1383321a67155fcf1cb12c583cdd89ef2;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 75af59e..b88e720 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -339,8 +339,8 @@ Dygraph.OPTIONS_REFERENCE = // "axis": { "default": "(none)", "labels": ["Axis display"], - "type": "string or object", - "description": "Set to either an object ({}) filled with options for this axis or to the name of an existing data series with its own axis to re-use that axis. See tests for usage." + "type": "string", + "description": "Set to either 'y1' or 'y2' to assign a series to a y-axis (primary or secondary). Must be set per-series." }, "pixelsPerXLabel": { "default": "", @@ -425,6 +425,13 @@ Dygraph.OPTIONS_REFERENCE = // "type": "red, blue", "description": "The color of the gridlines. This may be set on a per-axis basis to define each axis' grid separately." }, + "gridLinePattern": { + "default": "null", + "labels": ["Grid"], + "type": "array", + "example": "[10, 2, 5, 2]", + "description": "A custom pattern array where the even index is a draw and odd is a space in pixels. If null then it draws a solid line. The array should have a even length as any odd lengthed array could be expressed as a smaller even length array. This is used to create dashed gridlines." + }, "visibility": { "default": "[true, true, ...]", "labels": ["Data Line display"], @@ -486,6 +493,12 @@ Dygraph.OPTIONS_REFERENCE = // "type": "boolean", "description": "When set, display the graph as a step plot instead of a line plot. This option may either be set for the whole graph or for single series." }, + "labelsUTC": { + "default": "false", + "labels": ["Value display/formatting", "Axis display"], + "type": "boolean", + "description": "Show date/time labels according to UTC (instead of local time)." + }, "labelsKMB": { "default": "false", "labels": ["Value display/formatting"], @@ -811,6 +824,12 @@ Dygraph.OPTIONS_REFERENCE = // "type": "array or function", "description": "A function (or array of functions) which plot each data series on the chart. TODO(danvk): more details! May be set per-series." }, + "axes": { + "default": "null", + "labels": ["Configuration"], + "type": "Object", + "description": "Defines per-axis options. Valid keys are 'x', 'y' and 'y2'. Only some options may be set on a per-axis basis. If an option may be set in this way, it will be noted on this page. See also documentation on per-series and per-axis options." + }, "series": { "default": "null", "labels": ["Series"],