aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-07-12 12:20:27 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-07-12 12:20:27 -0400
commita6ff4b6481a4490351f715eed4f26b34cbbc5e03 (patch)
treecd21219b88935c4dc2f10df14bcb8c7a54166fe9 /src
parentcbe80a7b0fa7a887596859f74f0461a7c7f376d3 (diff)
percentages
Diffstat (limited to 'src')
-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 6047e6424..f9410a580 100644
--- a/src/client/views/nodes/DataVizBox/components/Histogram.tsx
+++ b/src/client/views/nodes/DataVizBox/components/Histogram.tsx
@@ -228,7 +228,7 @@ export class Histogram extends React.Component<HistogramProps> {
})
var field = Object.keys(dataSet[0])[0]
const data = validData.map((d: { [x: string]: any; }) => {
- if (this.numericalData) { return +d[field].replace(/\$/g, '') }
+ if (this.numericalData) { return +d[field].replace(/\$/g, '').replace(/\%/g, '') }
return d[field]
})
return data;