X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=3ecc531f7912bc76f3771ff874169ea0a4c6760f;hb=d3b990da77ec190c27faf0fb5c7a6a4034880c2f;hp=64e738d4f77864cf5da65ccfcbdc6f2ed00f5242;hpb=30a5cfc6c8dfe0ff412e63498eac09d31e9004a7;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 64e738d..3ecc531 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -99,12 +99,19 @@ Dygraph.OPTIONS_REFERENCE = // ], "description": "A function to call when a data point is clicked. and the point that was clicked." }, + "color": { + "default": "(see description)", + "labels": ["Data Series Colors"], + "type": "string", + "example": "red", + "description": "A per-series color definition. Used in conjunction with, and overrides, the colors option." + }, "colors": { "default": "(see description)", "labels": ["Data Series Colors"], "type": "array", "example": "['red', '#00FF00']", - "description": "List of colors for the data series. These can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\", etc. If not specified, equally-spaced points around a color wheel are used." + "description": "List of colors for the data series. These can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\", etc. If not specified, equally-spaced points around a color wheel are used. Overridden by the 'color' option." }, "connectSeparatedPoints": { "default": "false", @@ -560,7 +567,7 @@ Dygraph.OPTIONS_REFERENCE = // "dateWindow": { "default": "Full range of the input is shown", "labels": ["Axis display"], - "type": "Array of two Dates or numbers", + "type": "Array of two numbers", "example": "[
  Date.parse('2006-01-01'),
  (new Date()).valueOf()
]", "description": "Initially zoom in on a section of the graph. Is of the form [earliest, latest], where earliest/latest are milliseconds since epoch. If the data for the x-axis is numeric, the values in dateWindow must also be numbers." }, @@ -682,13 +689,19 @@ Dygraph.OPTIONS_REFERENCE = // "default": "true", "labels": ["Axis display"], "type": "boolean", - "description" : "Whether to draw the x-axis. Setting this to false also prevents x-axis ticks from being drawn and reclaims the space for the chart grid/lines." + "description" : "Deprecated. Use axes : { x : { drawAxis } }." }, "drawYAxis": { "default": "true", "labels": ["Axis display"], "type": "boolean", - "description" : "Whether to draw the y-axis. Setting this to false also prevents y-axis ticks from being drawn and reclaims the space for the chart grid/lines." + "description" : "Deprecated. Use axes : { y : { drawAxis } }." + }, + "drawAxis": { + "default": "true for x and y, false for y2", + "labels": ["Axis display"], + "type": "boolean", + "description" : "Whether to draw the specified axis. This may be set on a per-axis basis to define the visibility of each axis separately. Setting this to false also prevents axis ticks from being drawn and reclaims the space for the chart grid/lines." }, "gridLineWidth": { "default": "0.3", @@ -802,7 +815,13 @@ Dygraph.OPTIONS_REFERENCE = // "default": "[]", "labels": ["Configuration"], "type": "Array", - "description": "Defines per-graph plug-ins. Useful for per-graph customization" + "description": "Defines per-graph plugins. Useful for per-graph customization" + }, + "dataHandler": { + "default": "(depends on data)", + "labels": ["Data"], + "type": "Dygraph.DataHandler", + "description": "Custom DataHandler. This is an advanced customization. See http://bit.ly/151E7Aq." } } ; //