joyplots working

This commit is contained in:
Colin Megill
2017-09-06 22:19:55 -07:00
parent 129ffa1ec6
commit 0e36aaf830
20 changed files with 680 additions and 146 deletions
+46 -7
View File
@@ -3,16 +3,55 @@ import _ from "lodash";
import cells from "../../../data/GBM_metadata.js";
import drawParallelCoordinates from "./drawParallelCoordinates";
import createContinuousRanges from "./createContinuousRanges";
import styles from './parallelCoordinates.css';
const Continuous = () => {
import {
margin,
width,
height
} from "./util";
drawParallelCoordinates(cells)
class Continuous extends React.Component {
return (
<div>
<h3> Continuous Metadata </h3>
</div>
)
constructor(props) {
super(props);
this.state = {
ctx: null,
};
}
componentDidMount() {
drawParallelCoordinates(cells)
}
render() {
return (
<div id="parcoords_wrapper" style={{marginTop: 50}}>
<h3> Continuous Metadata </h3>
<div style={{marginBottom: 30}}>
Color By:
<button style={{marginLeft: 10}}>Cluster_2d_color</button>
<button style={{marginLeft: 10}}>Cluster_CNV_color</button>
<button style={{marginLeft: 10}}>Location.color</button>
<button style={{marginLeft: 10}}>Sample.name.color</button>
<button style={{marginLeft: 10}}>Sample.type.color</button>
<button style={{marginLeft: 10}}>Selection.color</button>
<button style={{marginLeft: 10}}>housekeeping_cluster_color</button>
<button style={{marginLeft: 10}}>recluster_myeloid</button>
<button style={{marginLeft: 10}}>recluster_myeloid_color</button>
</div>
<div
className={styles.parcoords}
id="parcoords"
style={{
width: width + margin.left + margin.right + "px",
height: height + margin.top + margin.bottom + "px"
}}></div>
<pre id="parcoords_output" className={styles.pre}></pre>
</div>
)
}
};
export default Continuous;