X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=b88e7200f598e17b8ff3b24f4ecb5bec34e91cbb;hb=c715be428d83d80c0a26fd60dc5bc36fb4c908d9;hp=8520c103940e0dc949610a2ae5d900dcba7bbd5a;hpb=3e644ed896f7184c93bc7d16f285a33a4c2e39f2;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 8520c10..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"], @@ -817,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"],