mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 16:28:12 +08:00
add section header
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
|
import { connect } from "react-redux";
|
||||||
import * as globals from "../../globals";
|
import * as globals from "../../globals";
|
||||||
|
|
||||||
import cells from "../../../data/GBM_metadata.js";
|
import cells from "../../../data/GBM_metadata.js";
|
||||||
@@ -52,6 +53,7 @@ const Categorical = () => {
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
<SectionHeader text="Categorical Metadata"/>
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Categorical;
|
export default Categorical;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import cells from "../../../data/GBM_metadata.js";
|
|||||||
import drawParallelCoordinates from "./drawParallelCoordinates";
|
import drawParallelCoordinates from "./drawParallelCoordinates";
|
||||||
import createContinuousRanges from "./createContinuousRanges";
|
import createContinuousRanges from "./createContinuousRanges";
|
||||||
import styles from './parallelCoordinates.css';
|
import styles from './parallelCoordinates.css';
|
||||||
|
import SectionHeader from "../framework/sectionHeader";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
margin,
|
margin,
|
||||||
@@ -28,7 +29,7 @@ class Continuous extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div id="parcoords_wrapper" style={{marginTop: 50}}>
|
<div id="parcoords_wrapper" style={{marginTop: 50}}>
|
||||||
<h3> Continuous Metadata </h3>
|
<SectionHeader text="Continuous Metadata"/>
|
||||||
<div style={{marginBottom: 30}}>
|
<div style={{marginBottom: 30}}>
|
||||||
Color By:
|
Color By:
|
||||||
<button style={{marginLeft: 10}}>Cluster_2d_color</button>
|
<button style={{marginLeft: 10}}>Cluster_2d_color</button>
|
||||||
@@ -48,10 +49,12 @@ class Continuous extends React.Component {
|
|||||||
width: width + margin.left + margin.right + "px",
|
width: width + margin.left + margin.right + "px",
|
||||||
height: height + margin.top + margin.bottom + "px"
|
height: height + margin.top + margin.bottom + "px"
|
||||||
}}></div>
|
}}></div>
|
||||||
<pre id="parcoords_output" className={styles.pre}></pre>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Continuous;
|
export default Continuous;
|
||||||
|
|
||||||
|
/* text appended to parellel coords giving N instances of selection */
|
||||||
|
// <pre id="parcoords_output" className={styles.pre}></pre>
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
const SectionHeader = ({text}) => (
|
||||||
|
<p style={{
|
||||||
|
fontSize: 32,
|
||||||
|
fontWeight: 700
|
||||||
|
}}>
|
||||||
|
{text}
|
||||||
|
</p>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default SectionHeader;
|
||||||
@@ -2,6 +2,7 @@ import React from 'react';
|
|||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import styles from "./graph.css";
|
import styles from "./graph.css";
|
||||||
import {setupGraphElements, drawGraph} from "./drawGraph";
|
import {setupGraphElements, drawGraph} from "./drawGraph";
|
||||||
|
import SectionHeader from "../framework/sectionHeader";
|
||||||
|
|
||||||
class Graph extends React.Component {
|
class Graph extends React.Component {
|
||||||
|
|
||||||
@@ -38,7 +39,7 @@ class Graph extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div id="graphWrapper">
|
<div id="graphWrapper">
|
||||||
<h3> Graph </h3>
|
<SectionHeader text="Graph"/>
|
||||||
<div id="graphAttachPoint"> </div>
|
<div id="graphAttachPoint"> </div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user