From: Robert Konigsberg Date: Fri, 28 Dec 2012 23:55:17 +0000 (-0500) Subject: Add more option specifications per series, and nullify the 'series' and 'axis' warnin... X-Git-Tag: v1.0.0~139^2~9 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=f4463776380ee90f90bb95b156e758775669c106;p=dygraphs.git Add more option specifications per series, and nullify the 'series' and 'axis' warnings dumped to the console. --- diff --git a/experimental/palette/options.js b/experimental/palette/options.js index 4586d5b..c26e990 100644 --- a/experimental/palette/options.js +++ b/experimental/palette/options.js @@ -37,6 +37,10 @@ * it's an array with possible values global|series|x|y|y2|highlight. */ 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" }, @@ -174,7 +178,8 @@ var opts = { type : "function(event, x, points,row)" }, highlightCircleSize : { - type : "int" + type : "int", + scope : [ "global", "series", "y", "y2" ] }, includeZero : { type : "boolean" @@ -265,16 +270,20 @@ var opts = { type : "boolean" }, strokeBorderColor : { - type : "string" + type : "string", + scope : [ "global", "series", "y", "y2" ] }, strokeBorderWidth : { - type : "float" + type : "float", + scope : [ "global", "series", "y", "y2" ] }, strokePattern : { - type : "array" + type : "array", + scope : [ "global", "series", "y", "y2" ] }, strokeWidth : { - type : "integer" + type : "integer", + scope : [ "global", "series", "y", "y2" ] }, timingName : { type : "string" @@ -329,6 +338,6 @@ var opts = { }, zoomCallback : { type : "function(minDate, maxDate, yRanges)" - }, + } };