X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=bd69bfcba1b634b1fc18673433c373d8419b82e8;hb=91cf61beb7c8d3836f3d860bf89a4464dabdf709;hp=a4e262c2dbf0260ac90940ec7e4d03b0e59e7bfd;hpb=2dde24e570f97f8d0f69445563d068a5678aa475;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index a4e262c..bd69bfc 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -60,7 +60,7 @@ Dygraph.OPTIONS_REFERENCE = // [ "cx" , "center x coordinate" ], [ "cy" , "center y coordinate" ], [ "color" , "series color" ], - [ "pointSize" , "the radius of the image." ] + [ "pointSize" , "the radius of the image." ], [ "idx" , "the row-index of the point in the data."] ], "description": "Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy). Also see drawHighlightPointCallback" @@ -130,7 +130,7 @@ Dygraph.OPTIONS_REFERENCE = // [ "cx" , "center x coordinate" ], [ "cy" , "center y coordinate" ], [ "color" , "series color" ], - [ "pointSize" , "the radius of the image." ] + [ "pointSize" , "the radius of the image." ], [ "idx" , "the row-index of the point in the data."] ], "description": "Draw a custom item when a point is highlighted. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy) Also see drawPointCallback" @@ -410,7 +410,7 @@ Dygraph.OPTIONS_REFERENCE = // "default": "rgb(128,128,128)", "labels": ["Grid"], "type": "red, blue", - "description": "The color of the gridlines." + "description": "The color of the gridlines. This may be set on a per-axis basis to define each axis' grid separately." }, "visibility": { "default": "[true, true, ...]", @@ -650,15 +650,27 @@ Dygraph.OPTIONS_REFERENCE = // }, "drawXGrid": { "default": "true", - "labels": ["Grid"], + "labels": ["Grid","Deprecated"], "type": "boolean", - "description" : "Whether to display vertical gridlines under the chart." + "description" : "Use the per-axis option drawGrid instead. Whether to display vertical gridlines under the chart." }, "drawYGrid": { "default": "true", + "labels": ["Grid","Deprecated"], + "type": "boolean", + "description" : "Use the per-axis option drawGrid instead. Whether to display horizontal gridlines under the chart." + }, + "drawGrid": { + "default": "true for x and y, false for y2", "labels": ["Grid"], "type": "boolean", - "description" : "Whether to display horizontal gridlines under the chart." + "description" : "Whether to display gridlines in the chart. This may be set on a per-axis basis to define the visibility of each axis' grid separately." + }, + "independentTicks": { + "default": "true for y, false for y2", + "labels": ["Axis display", "Grid"], + "type": "boolean", + "description" : "Only valid for y and y2, has no effect on x: This option defines whether the y axes should align their ticks or if they should be independent. Possible combinations: 1.) y=true, y2=false (default): y is the primary axis and the y2 ticks are aligned to the the ones of y. (only 1 grid) 2.) y=false, y2=true: y2 is the primary axis and the y ticks are aligned to the the ones of y2. (only 1 grid) 3.) y=true, y2=true: Both axis are independent and have their own ticks. (2 grids) 4.) y=false, y2=false: Invalid configuration causes an error." }, "drawXAxis": { "default": "true", @@ -676,7 +688,7 @@ Dygraph.OPTIONS_REFERENCE = // "default": "0.3", "labels": ["Grid"], "type": "float", - "description" : "Thickness (in pixels) of the gridlines drawn under the chart. The vertical/horizontal gridlines can be turned off entirely by using the drawXGrid and drawYGrid options." + "description" : "Thickness (in pixels) of the gridlines drawn under the chart. The vertical/horizontal gridlines can be turned off entirely by using the drawXGrid and drawYGrid options. This may be set on a per-axis basis to define each axis' grid separately." }, "axisLineWidth": { "default": "0.3",