X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=05988c4633355447cd25b18822014f658882b849;hb=250bb62bb4614a3c1189c9b5b8b99e182a11db6e;hp=62207501beabaa533df27033f4409e788aa9b5ce;hpb=3b3b39e7140cf45dfdc95f636978c5353e3a6c38;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 6220750..05988c4 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", @@ -467,6 +474,12 @@ Dygraph.OPTIONS_REFERENCE = // "type": "string", "description": "When to display the legend. By default, it only appears when a user mouses over the chart. Set it to \"always\" to always display a legend of some sort." }, + "legendFollow": { + "default": "false", + "labels": ["Legend"], + "type": "boolean", + "description": "Legend follows highlighted points" + }, "labelsShowZeroValues": { "default": "true", "labels": ["Legend"], @@ -682,13 +695,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",