Allow columns encoded in float64 to be rendered as part of continuous value histograms. (#1905)

This commit is contained in:
maniarathi
2020-10-06 12:59:07 -07:00
committed by GitHub
parent 3718e894ed
commit b048fd8d9a

View File

@@ -14,7 +14,12 @@ class Continuous extends React.PureComponent {
if (!schema) return null;
const obsIndex = schema.annotations.obs.index;
const allContinuousNames = schema.annotations.obs.columns
.filter((col) => col.type === "int32" || col.type === "float32")
.filter(
(col) =>
col.type === "int32" ||
col.type === "float32" ||
col.type === "float64"
)
.filter((col) => col.name !== obsIndex)
.filter((col) => !col.writable) // skip user annotations - they will be treated as categorical
.map((col) => col.name);