aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/Histogram.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-07-12 17:28:20 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-07-12 17:28:20 -0400
commitc5740deae879fffdc46a862b81be2c96ae9366b4 (patch)
tree1348aec6b5e553512fca2c1d98b0d93a78280140 /src/client/views/nodes/DataVizBox/components/Histogram.tsx
parentd20a4b3791c79325c709c42f797452275f2da312 (diff)
graph type option ui + problem fixes
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/Histogram.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/Histogram.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/Histogram.tsx b/src/client/views/nodes/DataVizBox/components/Histogram.tsx
index e4267aee3..0ea492ff1 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])
+ .tickFormat( i => uniqueArr[i.valueOf])
.tickPadding(10)
translateXAxis = eachRectWidth / 2;
}