removed range selector mini plot gradient color option to avoid conflict with PR...
authorblcook223 <benjamin.l.cook@gmail.com>
Sat, 14 Feb 2015 20:42:29 +0000 (14:42 -0600)
committerblcook223 <benjamin.l.cook@gmail.com>
Sat, 14 Feb 2015 20:42:29 +0000 (14:42 -0600)
auto_tests/tests/range_selector.js
dygraph-options-reference.js
dygraph-utils.js
dygraph.js
plugins/range-selector.js

index 29a6709..67d76cc 100644 (file)
@@ -142,7 +142,6 @@ RangeSelectorTestCase.prototype.testAdditionalRangeSelectorOptions = function()
     rangeSelectorBGStrokeColor: 'blue',
     rangeSelectorBGLineWidth: 3,
     rangeSelectorPlotLineWidth: 0.5,
-    rangeSelectorPlotGradientColor: 'gray',
     rangeSelectorFGStrokeColor: 'red',
     rangeSelectorFGLineWidth: 2,
     rangeSelectorAlpha: 0.8,
index 11c1236..26bb22b 100644 (file)
@@ -757,12 +757,6 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
     "type": "float",
     "description": "The width of the range selector mini plot line."
   },
-  "rangeSelectorPlotGradientColor": {
-    "default": "white",
-    "labels": ["Interactive Elements"],
-    "type": "string",
-    "description": "The color that along with rangeSelectorPlotFillColor defines the linear gradient in the range selector mini plot. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\". You can also specify \"\" to turn off gradient."
-  },
   "rangeSelectorFGStrokeColor": {
     "default": "black",
     "labels": ["Interactive Elements"],
index 767fe64..4f782b1 100644 (file)
@@ -906,7 +906,6 @@ var pixelSafeOptions = {
   'rangeSelectorBGStrokeColor': true,
   'rangeSelectorBGLineWidth': true,
   'rangeSelectorPlotLineWidth': true,
-  'rangeSelectorPlotGradientColor': true,
   'rangeSelectorFGStrokeColor': true,
   'rangeSelectorFGLineWidth': true,
   'rangeSelectorAlpha': true,
index acbcbe3..35f2b5f 100644 (file)
@@ -340,7 +340,6 @@ Dygraph.DEFAULT_ATTRS = {
   rangeSelectorBGStrokeColor: "gray",
   rangeSelectorBGLineWidth: 1,
   rangeSelectorPlotLineWidth:1.5,
-  rangeSelectorPlotGradientColor: "white",
   rangeSelectorFGStrokeColor: "black",
   rangeSelectorFGLineWidth: 1,
   rangeSelectorAlpha: 0.6,
index fea0cf3..f9d4193 100644 (file)
@@ -547,8 +547,6 @@ rangeSelector.prototype.drawMiniPlot_ = function() {
   if (!fillStyle && !strokeStyle) {
     return;
   }
-  var gradientFillStyle = this.getOption_('rangeSelectorPlotGradientColor');
-  if (!gradientFillStyle) { gradientFillStyle = fillStyle; }
 
   var stepPlot = this.getOption_('stepPlot');
 
@@ -610,7 +608,7 @@ rangeSelector.prototype.drawMiniPlot_ = function() {
 
   if (fillStyle) {
     var lingrad = this.bgcanvas_ctx_.createLinearGradient(0, 0, 0, canvasHeight);
-    lingrad.addColorStop(0, gradientFillStyle);
+    lingrad.addColorStop(0, 'white');
     lingrad.addColorStop(1, fillStyle);
     this.bgcanvas_ctx_.fillStyle = lingrad;
     ctx.fill();