From 2f1facaafb6249dc9272492932c35a7546354590 Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Thu, 28 Feb 2019 09:05:48 -0800 Subject: [PATCH] [WIP DO NOT MERGE] suppress display of continous annotation without a finite extent (#618) * initial dataframe commit * initial dataframe port of core app * rename variables for clarity * remove unused import * comment out unused code * fix array handling bug in crossfilter dimension creation * allow creation of empty dataframes * handle non-existent columns * handle non-existent columns * revise tests for new dataframe * comments for clarity * comments for clarity * generate bulk add placeholder with real gene names * fix bug in gene name adding * more dataframe unit tests * fix bug - subset from current world, not universe * put cut and pasted code into a single function * improve caching of crossfilter * remove cascading update bug from graph * more performance work * improve state handling for scatterplot * performance optimization of critical path * add column summarization * dataframe utils * add callOnceLazy * fix tests * minor updates found during review * fix misspelling * remove RESTv02 from function names * comment cleanup * cut/icut col parameter defaults to null * break up large test * improve tests and comments on dataframe at/has functions * add Dataframe withCol/dropCol * expression varData now stored in a dataframe * dead code cleanup * use dataframe.summarize() * test cases for Dataframe.col.summarize * update test cases for new dataframe summarize * improve naming * use new hasCol API * add comments * add more Dataframe.withCol tests * add ability to specify row index in cut operation * retire subsetVarData function * correctly handle expression subsetting * lint and improve comments * rename cut to subset * suppress display of continous annotation withont a finite extent * fix botched merge * more fix of botched merged --- client/src/components/continuous/continuous.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/src/components/continuous/continuous.js b/client/src/components/continuous/continuous.js index 0ea5f022..10656d9b 100644 --- a/client/src/components/continuous/continuous.js +++ b/client/src/components/continuous/continuous.js @@ -68,8 +68,15 @@ class Continuous extends React.Component { const summary = obsAnnotations.col(key).summarize(); const isColorField = key.includes("color") || key.includes("Color"); + const nonFiniteExtent = + summary.min === undefined || summary.max === undefined; zebra += 1; - if (!summary.categorical && key !== "name" && !isColorField) { + if ( + !summary.categorical && + key !== "name" && + !isColorField && + !nonFiniteExtent + ) { return (