mirror of
https://github.com/apache/superset.git
synced 2026-04-13 21:24:28 +00:00
Allow for multiple color schemes (#3295)
* Allow for multiple color schemes 1. create ColorSchemeControl component 2. using the same new control component for linear colors * add color spectum for linear color scheme * remove dup css * fix controls setting for linear color scheme * minor fix by code review comment
This commit is contained in:
committed by
Maxime Beauchemin
parent
3c8577b853
commit
b9a2fa4015
@@ -10,6 +10,7 @@ import SelectControl from './controls/SelectControl';
|
||||
import TextAreaControl from './controls/TextAreaControl';
|
||||
import TextControl from './controls/TextControl';
|
||||
import VizTypeControl from './controls/VizTypeControl';
|
||||
import ColorSchemeControl from './controls/ColorSchemeControl';
|
||||
|
||||
const controlMap = {
|
||||
BoundsControl,
|
||||
@@ -21,6 +22,7 @@ const controlMap = {
|
||||
TextAreaControl,
|
||||
TextControl,
|
||||
VizTypeControl,
|
||||
ColorSchemeControl,
|
||||
};
|
||||
const controlTypes = Object.keys(controlMap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user