projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #240 from timeu/bugfix_upstream
[dygraphs.git]
/
experimental
/
palette
/
options.js
diff --git
a/experimental/palette/options.js
b/experimental/palette/options.js
index
c1c17f3
..
1a3b231
100644
(file)
--- a/
experimental/palette/options.js
+++ b/
experimental/palette/options.js
@@
-34,9
+34,13
@@
* boolean|string|float|int|array<boolean>|array<int>|array<float>|array<Date>
* or function(parameter list)
* scope: if empty, then available in global scope only. Otherwise,
* boolean|string|float|int|array<boolean>|array<int>|array<float>|array<Date>
* or function(parameter list)
* scope: if empty, then available in global scope only. Otherwise,
- * it's an array with possible values global|series|x|y|y2.
+ * it's an array with possible values global|series|x|y|y2
|highlight
.
*/
var opts = {
*/
var opts = {
+ // These two exist, but are not used by the palette at all.
+ series : { type : null, scope : [] },
+ axes : { type : null, scope : [] },
+
animatedZooms : {
type : "boolean"
},
animatedZooms : {
type : "boolean"
},
@@
-55,13
+59,17
@@
var opts = {
avoidMinZero : {
type : "boolean"
},
avoidMinZero : {
type : "boolean"
},
+ axis : {
+ type : "string",
+ scope : [ "series" ]
+ },
axisLabelColor : {
type : "string",
axisLabelColor : {
type : "string",
-
// scope : [
"x", "y", "y2" ]
+
scope : [ "global",
"x", "y", "y2" ]
},
axisLabelFontSize : {
type : "int",
},
axisLabelFontSize : {
type : "int",
-
// scope : [
"x", "y", "y2" ]
+
scope : [ "global",
"x", "y", "y2" ]
},
axisLabelFormatter : {
type : "function(numberOrDate, granularity, opts, dygraph)",
},
axisLabelFormatter : {
type : "function(numberOrDate, granularity, opts, dygraph)",
@@
-69,19
+77,19
@@
var opts = {
},
axisLabelWidth : {
type : "int",
},
axisLabelWidth : {
type : "int",
- // scope : [ "x", "y", "y2" ]
+ // scope : [ "
global", "
x", "y", "y2" ]
},
axisLineColor : {
type : "string",
},
axisLineColor : {
type : "string",
-
// scope : [
"x", "y", "y2" ]
+
scope : [ "global",
"x", "y", "y2" ]
},
axisLineWidth : {
type : "int",
},
axisLineWidth : {
type : "int",
-
// scope : [
"x", "y", "y2" ]
+
scope : [ "global",
"x", "y", "y2" ]
},
axisTickSize : {
type : "int",
},
axisTickSize : {
type : "int",
- // scope : [ "x", "y", "y2" ]
+ // scope : [ "
global", "
x", "y", "y2" ]
},
clickCallback : {
type : "function(e, x, points)"
},
clickCallback : {
type : "function(e, x, points)"
@@
-174,7
+182,8
@@
var opts = {
type : "function(event, x, points,row)"
},
highlightCircleSize : {
type : "function(event, x, points,row)"
},
highlightCircleSize : {
- type : "int"
+ type : "int",
+ scope : [ "global", "series", "y", "y2" ]
},
includeZero : {
type : "boolean"
},
includeZero : {
type : "boolean"
@@
-265,16
+274,20
@@
var opts = {
type : "boolean"
},
strokeBorderColor : {
type : "boolean"
},
strokeBorderColor : {
- type : "string"
+ type : "string",
+ scope : [ "global", "series", "y", "y2" ]
},
strokeBorderWidth : {
},
strokeBorderWidth : {
- type : "float"
+ type : "float",
+ scope : [ "global", "series", "y", "y2" ]
},
strokePattern : {
},
strokePattern : {
- type : "array<integer>"
+ type : "array<int>",
+ scope : [ "global", "series", "y", "y2" ]
},
strokeWidth : {
},
strokeWidth : {
- type : "integer"
+ type : "float",
+ scope : [ "global", "series", "y", "y2" ]
},
timingName : {
type : "string"
},
timingName : {
type : "string"
@@
-329,6
+342,6
@@
var opts = {
},
zoomCallback : {
type : "function(minDate, maxDate, yRanges)"
},
zoomCallback : {
type : "function(minDate, maxDate, yRanges)"
- }
,
+ }
};
};