From 35e5608f2ecc601f51974c76d9d00c83c1294e34 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 16 Mar 2021 17:15:44 -0700 Subject: [PATCH] chore: translation strings in histogram display (#981) --- .../plugins/legacy-plugin-chart-histogram/src/Histogram.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx index a579f785bfbe9..b727d31012421 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx @@ -23,7 +23,7 @@ import { Histogram, BarSeries, XAxis, YAxis } from '@data-ui/histogram'; import { chartTheme } from '@data-ui/theme'; import { LegendOrdinal } from '@vx/legend'; import { scaleOrdinal } from '@vx/scale'; -import { CategoricalColorNamespace, styled } from '@superset-ui/core'; +import { CategoricalColorNamespace, styled, t } from '@superset-ui/core'; import WithLegend from './WithLegend'; const propTypes = { @@ -109,11 +109,11 @@ class CustomHistogram extends React.PureComponent { {datum.bin0} to {datum.bin1}
- count + {t('count')} {datum.count}
- cumulative + {t('cumulative')} {datum.cumulative}