From f4463776380ee90f90bb95b156e758775669c106 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Fri, 28 Dec 2012 18:55:17 -0500 Subject: [PATCH] Add more option specifications per series, and nullify the 'series' and 'axis' warnings dumped to the console. --- experimental/palette/options.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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)" - }, + } }; -- 2.7.4