aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/Histogram.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/Histogram.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/Histogram.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/Histogram.tsx b/src/client/views/nodes/DataVizBox/components/Histogram.tsx
index 086db2a47..954569910 100644
--- a/src/client/views/nodes/DataVizBox/components/Histogram.tsx
+++ b/src/client/views/nodes/DataVizBox/components/Histogram.tsx
@@ -457,10 +457,11 @@ export class Histogram extends React.Component<HistogramProps> {
this.componentDidMount();
- if (this._histogramData.length > 0) {
- return this.props.axes.length >= 1 ? (
- <div className="chart-container">
- <div className="graph-title">
+ if (this._histogramData.length>0 || (!this.incomingLinks || this.incomingLinks.length==0)){
+ return (
+ this.props.axes.length >= 1 ? (
+ <div className="chart-container" >
+ <div className="graph-title">
<EditableText
val={StrCast(this.props.layoutDoc[titleAccessor])}
setVal={undoable(