From 07b6b16fdabac34621c180a44bf43b2061578594 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Thu, 5 Jan 2017 11:16:04 +0200 Subject: [PATCH] Fix: show color options in colors dropdown --- client/app/visualizations/chart/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/app/visualizations/chart/index.js b/client/app/visualizations/chart/index.js index 7ba48656..e82218c3 100644 --- a/client/app/visualizations/chart/index.js +++ b/client/app/visualizations/chart/index.js @@ -1,4 +1,4 @@ -import { has, partial, intersection, without, contains, isUndefined, sortBy, each, pluck, keys, difference } from 'underscore'; +import { extend, has, partial, intersection, without, contains, isUndefined, sortBy, each, pluck, keys, difference } from 'underscore'; import plotly from './plotly'; import template from './chart.html'; import editorTemplate from './chart-editor.html'; @@ -40,7 +40,7 @@ function ChartRenderer() { }; } -function ChartEditor(clientConfig) { +function ChartEditor(ColorPalette, clientConfig) { return { restrict: 'E', template: editorTemplate, @@ -50,6 +50,7 @@ function ChartEditor(clientConfig) { }, link(scope) { scope.currentTab = 'general'; + scope.colors = extend({ Automatic: null }, ColorPalette); scope.stackingOptions = { Disabled: null,