diff --git a/src/components/categorical/categorical.js b/src/components/categorical/categorical.js
index 05c6d476..bb7d930d 100644
--- a/src/components/categorical/categorical.js
+++ b/src/components/categorical/categorical.js
@@ -36,20 +36,37 @@ class Category extends React.Component {
}}>
- {this.props.metadataField}:
+ {this.props.metadataField}
+
+ 🎨
+
-
{
@@ -91,12 +108,10 @@ class Categories extends React.Component {
return (
-
{
_.map(this.props.ranges, (value, key) => {
const isColorField = key.includes("color") || key.includes("Color");
diff --git a/src/components/categorical/value.js b/src/components/categorical/value.js
index f8703245..8214fece 100644
--- a/src/components/categorical/value.js
+++ b/src/components/categorical/value.js
@@ -75,7 +75,7 @@ class CategoryValue extends React.Component {
fontStyle: "italic",
cursor: "pointer",
}}>
- {" only"}
+ {"only"}
)
diff --git a/src/components/continuous/continuous.js b/src/components/continuous/continuous.js
index d47fcab0..1f431750 100644
--- a/src/components/continuous/continuous.js
+++ b/src/components/continuous/continuous.js
@@ -8,7 +8,6 @@ import SectionHeader from "../framework/sectionHeader";
import setupParallelCoordinates from "./setupParallelCoordinates";
import drawAxes from "./drawAxes";
import drawLinesCanvas from "./drawLinesCanvas";
-import ColorControl from "../controls/color";
import {
margin,
@@ -80,6 +79,7 @@ class Continuous extends React.Component {
height,
width,
this.handleBrushAction.bind(this),
+ this.handleColorAction.bind(this),
);
this.setState({
@@ -128,6 +128,13 @@ class Continuous extends React.Component {
data: selection
})
}
+ handleColorAction (key) {
+ this.props.dispatch({
+ type: "color by continuous metadata",
+ colorAccessor: key,
+ rangeMaxForColorAccessor: this.props.initializeRanges[key].range.max
+ });
+ }
render() {
@@ -140,7 +147,6 @@ class Continuous extends React.Component {
width: width + margin.left + margin.right + "px",
height: height + margin.top + margin.bottom + "px"
}}>
-
- Color:
- {
- _.map(this.props.ranges, (value, key) => {
- if ( /* value.options */
- value.range &&
- key !== "CellName"
- ) {
- return
- }
- })
- }
-
- )
- }
-};
-
-export default ColorOptions;
-
-//