From 6707d77af57860eb0cf970d87937d507ec33a816 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 26 Apr 2017 12:38:52 +0200 Subject: [PATCH] graph: dashes option only used in series overrides Removes dashes option from Display tab so that it is only available for series overrides. Also removes options for dash space and length in series overrides and just uses the default values of 10 for both of them. --- public/app/core/time_series2.ts | 2 -- .../panel/graph/series_overrides_ctrl.js | 2 -- .../app/plugins/panel/graph/tab_display.html | 18 +----------------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/public/app/core/time_series2.ts b/public/app/core/time_series2.ts index 63b3dd3837b..782543787d7 100644 --- a/public/app/core/time_series2.ts +++ b/public/app/core/time_series2.ts @@ -90,8 +90,6 @@ export default class TimeSeries { this.lines.lineWidth = override.linewidth; this.dashes.lineWidth = override.linewidth; } - if (override.dashLength !== void 0) { this.dashes.dashLength[0] = override.dashLength; } - if (override.spaceLength !== void 0) { this.dashes.dashLength[1] = override.spaceLength; } if (override.nullPointMode !== void 0) { this.nullPointMode = override.nullPointMode; } if (override.pointradius !== void 0) { this.points.radius = override.pointradius; } if (override.steppedLine !== void 0) { this.lines.steps = override.steppedLine; } diff --git a/public/app/plugins/panel/graph/series_overrides_ctrl.js b/public/app/plugins/panel/graph/series_overrides_ctrl.js index 945f8340b33..bca1a9e5587 100644 --- a/public/app/plugins/panel/graph/series_overrides_ctrl.js +++ b/public/app/plugins/panel/graph/series_overrides_ctrl.js @@ -101,8 +101,6 @@ define([ $scope.addOverrideOption('Fill below to', 'fillBelowTo', $scope.getSeriesNames()); $scope.addOverrideOption('Staircase line', 'steppedLine', [true, false]); $scope.addOverrideOption('Dashes', 'dashes', [true, false]); - $scope.addOverrideOption('Dash Length', 'dashLength', [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]); - $scope.addOverrideOption('Dash Space', 'spaceLength', [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]); $scope.addOverrideOption('Points', 'points', [true, false]); $scope.addOverrideOption('Points Radius', 'pointradius', [1,2,3,4,5]); $scope.addOverrideOption('Stack', 'stack', [true, false, 'A', 'B', 'C', 'D']); diff --git a/public/app/plugins/panel/graph/tab_display.html b/public/app/plugins/panel/graph/tab_display.html index 9f8a90829ae..a9537e55db2 100644 --- a/public/app/plugins/panel/graph/tab_display.html +++ b/public/app/plugins/panel/graph/tab_display.html @@ -32,28 +32,12 @@ -
+
- - -
- -
- -
-
-
- -
- -
-