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.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/Histogram.tsx b/src/client/views/nodes/DataVizBox/components/Histogram.tsx
index 0ea492ff1..b6ae15709 100644
--- a/src/client/views/nodes/DataVizBox/components/Histogram.tsx
+++ b/src/client/views/nodes/DataVizBox/components/Histogram.tsx
@@ -305,7 +305,7 @@ export class Histogram extends React.Component<HistogramProps> {
bins.forEach(d => d.x0 = d.x0!)
xAxis = d3.axisBottom(x)
.ticks(numBins-1)
- .tickFormat( i => uniqueArr[i.valueOf])
+ .tickFormat( i => uniqueArr[i])
.tickPadding(10)
translateXAxis = eachRectWidth / 2;
}
@@ -355,11 +355,11 @@ export class Histogram extends React.Component<HistogramProps> {
render() {
return (
- this.props.axes.length >= 1 ? (
+ this.props.axes.length >= 1 && (this.incomingSelected? this.incomingSelected.length>0 : true) ? (
<div ref={this._histogramRef} className="chart-container">
<span> {`Selected: ${Object.keys(this._histogramData[0])[0]}`}</span>
</div>
- ) : <span className="chart-container"> {'first use table view to select an axis to plot'}</span>
+ ) : <span className="chart-container"> {'first use table view to select a column to graph'}</span>
);
}