This commit is contained in:
Colin Megill
2021-08-05 16:39:22 -07:00
parent b67142e98f
commit b553da0264
+5 -8
View File
@@ -83,6 +83,7 @@ class Dotplot extends React.Component {
{!dotplot.column && "Select a column"} {!dotplot.column && "Select a column"}
</text> </text>
</g> </g>
{/* ASYNC HERE */}
{dotplot.row && dotplot.column && ( {dotplot.row && dotplot.column && (
<g <g
id="dotplot_interface_margin" id="dotplot_interface_margin"
@@ -90,8 +91,7 @@ class Dotplot extends React.Component {
> >
{/* Acaa1b, Mal, Foxq1 ... across the top of the dotplot */} {/* Acaa1b, Mal, Foxq1 ... across the top of the dotplot */}
<g id="dotplot_column_labels" transform="translate(14,-13)"> <g id="dotplot_column_labels" transform="translate(14,-13)">
{_genes.map((_geneSymbol, _geneIndexInGeneset) => { {_genes.map((_geneSymbol, _geneIndexInGeneset) => (
return (
<text <text
key={_geneSymbol} key={_geneSymbol}
x={0} x={0}
@@ -103,13 +103,11 @@ class Dotplot extends React.Component {
> >
{_geneSymbol} {_geneSymbol}
</text> </text>
); ))}
})}
</g> </g>
{/* loop over genes in the geneset, */} {/* loop over genes in the geneset, */}
<g id="dotplot_columns"> <g id="dotplot_columns">
{_genes.map((_geneSymbol, _geneIndexInGeneset) => { {_genes.map((_geneSymbol, _geneIndexInGeneset) => (
return (
<Column <Column
key={_geneSymbol} key={_geneSymbol}
_geneSymbol={_geneSymbol} _geneSymbol={_geneSymbol}
@@ -118,8 +116,7 @@ class Dotplot extends React.Component {
rowColumnSize={this.rowColumnSize} rowColumnSize={this.rowColumnSize}
metadataField={dotplot.row} metadataField={dotplot.row}
/> />
); ))}
})}
</g> </g>
</g> </g>
)} )}