diff --git a/src/components/categorical/categorical.js b/src/components/categorical/categorical.js index b21196e5..46242774 100644 --- a/src/components/categorical/categorical.js +++ b/src/components/categorical/categorical.js @@ -1,59 +1,96 @@ import React from "react"; import _ from "lodash"; import { connect } from "react-redux"; + import * as globals from "../../globals"; +import styles from "./categorical.css"; +import SectionHeader from "../framework/sectionHeader" +import createCategoryCounts from "./createCategoryCounts"; +import { updateCategoricalQueryParams } from "../../util"; import cells from "../../../data/GBM_metadata.js"; -import createCategoryCounts from "./createCategoryCounts"; -const Button = ({category, c, i}) => ( +const Button = ({category, value, count, i}) => ( ) -const Category = ({category, title}) => ( -
-

{title}

- { _.map(Object.keys(category), (c, i) =>
) -const Categorical = () => { +@connect((state) => { + return { + foo123: state + } +}) +class Categorical extends React.Component { + constructor(props) { + super(props); + this.state = { - return ( -
-

Categorical Metadata

- { - _.map(createCategoryCounts(cells), - (value, key) => { - return - }) - } -
- ) + }; + } + render () { + return ( +
+

Sort by: Alphabetical / Count || Show counts: true / false || Collapse: all / none

+ { + _.map(createCategoryCounts(cells), + (value, key) => { + return + }) + } +
+ ) + } }; export default Categorical;