aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;