projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now you can specify the axis a series lives on in the palette.
[dygraphs.git]
/
experimental
/
palette
/
options.js
diff --git
a/experimental/palette/options.js
b/experimental/palette/options.js
index
c1c17f3
..
c91439d
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,6
+59,10
@@
var opts = {
avoidMinZero : {
type : "boolean"
},
avoidMinZero : {
type : "boolean"
},
+ axis : {
+ type : "string",
+ scope : [ "series" ]
+ },
axisLabelColor : {
type : "string",
// scope : [ "x", "y", "y2" ]
axisLabelColor : {
type : "string",
// scope : [ "x", "y", "y2" ]
@@
-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)"
- }
,
+ }
};
};