1 // Copyright (c) 2011 Google, Inc.
3 // Permission is hereby granted, free of charge, to any person obtaining a copy
4 // of this software and associated documentation files (the "Software"), to deal
5 // in the Software without restriction, including without limitation the rights
6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 // copies of the Software, and to permit persons to whom the Software is
8 // furnished to do so, subject to the following conditions:
10 // The above copyright notice and this permission notice shall be included in
11 // all copies or substantial portions of the Software.
13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * @fileoverview List of options and their types, used for the palette.
24 * @author konigsberg@google.com (Robert Konigsberg)
30 animatedZooms
: { type
: "boolean" },
31 annotationClickHandler
: {type
: "function(annotation, point, dygraph, event)"},
32 annotationDblClickHandler
: {type
: "function(annotation, point, dygraph, event)"},
33 annotationMouseOutHandler
: {type
: "function(annotation, point, dygraph, event)"},
34 annotationMouseOverHandler
: {type
: "function(annotation, point, dygraph, event)"},
35 avoidMinZero
: { type
: "boolean" },
36 axisLabelColor
: { type
: "string" },
37 axisLabelFontSize
: {type
: "int" },
38 axisLabelWidth
: {type
: "int" },
39 axisLineColor
: {type
: "string" },
40 axisLineWidth
: {type
: "int" },
41 axisTickSize
: {type
: "int" },
42 clickCallback
: {type
: "function(e, x, points)"},
43 colorSaturation
: { type
: "float" },
44 colors
: { type
: "array<string>" },
45 colorValue
: { type
: "float" },
46 connectSeparatedPoints
: { type
: "boolean" },
47 customBars
: { type
: "boolean" },
48 dateWindow
: { type
: "array<Date>"},
49 delimiter
: { type
: "string" },
50 digitsAfterDecimal
: { type
: "int"},
51 displayAnnotations
: { type
: "boolean" },
52 drawAxesAtZero
: { type
: "boolean" },
53 drawCallback
: {type
: "function(dygraph, is_initial)"},
54 drawGapEdgePoints
: { type
: "boolean" },
55 drawHighlightPointCallback
: { type
: "function(g, seriesName, canvasContext, cx, cy, color, pointSize)" },
56 drawPoints
: { type
: "boolean" },
57 drawPointCallback
: { type
: "function(g, seriesName, canvasContext, cx, cy, color, pointSize)" },
58 drawXAxis
: {type
: "boolean" },
59 drawXGrid
: {type
: "boolean" },
60 drawYAxis
: {type
: "boolean" },
61 drawYGrid
: {type
: "boolean" },
62 errorBars
: { type
: "boolean" },
63 fillAlpha
: { type
: "float" },
64 fillGraph
: { type
: "boolean" },
65 fractions
: { type
: "boolean" },
66 gridLineColor
: { type
: "string" },
67 gridLineWidth
: { type
: "int" },
68 height
: {type
: "int"},
69 hideOverlayOnMouseOut
: { type
: "boolean" },
70 highlightCallback
: {type
: "function(event, x, points,row)"},
71 highlightCircleSize
: { type
: "int" },
72 includeZero
: { type
: "boolean" },
73 isZoomedIgnoreProgrammaticZoom
: {type
: "boolean" },
74 labelsDivWidth
: {type
: "integer"},
75 labels
: {type
: "array<string>" },
76 labelsKMB
: {type
: "boolean" },
77 labelsKMG2
: {type
: "boolean"},
78 labelsSeparateLines
: {type
: "boolean"},
79 labelsShowZeroValues
: {type
: "boolean"},
80 legend
: {type
: "string"},
81 logscale
: { type
: "boolean" },
82 maxNumberWidth
: {type
: "int"},
83 panEdgeFraction
: { type
: "float" },
84 pixelsPerLabel
: { type
: "int" },
85 pixelsPerXLabel
: { type
: "int" },
86 pixelsPerYLabel
: { type
: "int" },
87 pointClickCallback
: {type
: "function(e, point)"},
88 pointSize
: { type
: "integer" },
89 rangeSelectorHeight
: { type
: "int" },
90 rangeSelectorPlotFillColor
: { type
: "int" },
91 rangeSelectorPlotStrokeColor
: { type
: "int" },
92 rightGap
: {type
: "boolean"},
93 rollPeriod
: {type
: "int"},
94 showLabelsOnHighlight
: { type
: "boolean" },
95 showRangeSelector
: { type
: "boolean" },
96 showRoller
: {type
: "boolean" },
97 sigFigs
: {type
: "int"},
98 sigma
: { type
: "float" },
99 stackedGraph
: { type
: "boolean" },
100 stepPlot
: { type
: "boolean" },
101 strokeBorderColor
: { type
: "string" },
102 strokeBorderWidth
: { type
: "float" },
103 strokePattern
: { type
: "array<integer>" },
104 strokeWidth
: { type
: "integer" },
105 timingName
: { type
: "string" },
106 title
: {type
: "string"},
107 titleHeight
: {type
: "integer"},
108 underlayCallback
: {type
: "function(canvas, area, dygraph)"},
109 unhighlightCallback
: {type
: "function(event)"},
110 valueRange
: {type
: "array<float>"},
111 visibility
: {type
: "array<boolean>"},
112 width
: {type
: "int"},
113 wilsonInterval
: { type
: "boolean" },
114 xAxisHeight
: {type
: "int"},
115 xAxisLabelWidth
: {type
: "int"},
116 xLabelHeight
: {type
: "int"},
117 xlabel
: {type
: "string" },
118 xValueParser
: {type
: "function(str)"},
119 yAxisLabelWidth
: {type
: "int"},
120 yLabelWidth
: {type
: "int"},
121 ylabel
: {type
: "string" },
122 zoomCallback
: {type
: "function(minDate, maxDate, yRanges)"},