From a6ff4b6481a4490351f715eed4f26b34cbbc5e03 Mon Sep 17 00:00:00 2001 From: srichman333 Date: Wed, 12 Jul 2023 12:20:27 -0400 Subject: percentages --- src/client/views/nodes/DataVizBox/components/Histogram.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { }) 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; -- cgit v1.2.3-70-g09d2