From d2d4f6186ff97a1694144c604e141069ba30cd9a Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Mon, 10 Feb 2014 09:55:49 +0200 Subject: [PATCH] Remove SERIES_TYPES from Visualization. --- rd_ui/app/scripts/directives.js | 8 ++++---- rd_ui/app/scripts/services.js | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/rd_ui/app/scripts/directives.js b/rd_ui/app/scripts/directives.js index de01420f..abc7be70 100644 --- a/rd_ui/app/scripts/directives.js +++ b/rd_ui/app/scripts/directives.js @@ -62,9 +62,9 @@ 'Cohort': Visualization.prototype.TYPES.COHORT }; scope.seriesTypes = { - 'Line': Visualization.prototype.SERIES_TYPES.LINE, - 'Column': Visualization.prototype.SERIES_TYPES.COLUMN, - 'Area': Visualization.prototype.SERIES_TYPES.AREA, + 'Line': 'line', + 'Column': 'column', + 'Area': 'area', 'Scatter': 'scatter' }; @@ -94,7 +94,7 @@ // Chart return { 'series': { - 'type': Visualization.prototype.SERIES_TYPES.LINE + 'type': scope.seriesTypes[0] } }; } diff --git a/rd_ui/app/scripts/services.js b/rd_ui/app/scripts/services.js index b05f035f..7216c2d2 100644 --- a/rd_ui/app/scripts/services.js +++ b/rd_ui/app/scripts/services.js @@ -291,11 +291,6 @@ 'CHART': 'CHART', 'COHORT': 'COHORT', 'TABLE': 'TABLE' - }, - SERIES_TYPES: { - 'LINE': 'line', - 'COLUMN': 'column', - 'AREA': 'area' } };