Skip to content

Commit

Permalink
chore: translation strings in histogram display (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored and zhaoyongjie committed Nov 26, 2021
1 parent 1c40ac5 commit 35e5608
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -109,11 +109,11 @@ class CustomHistogram extends React.PureComponent {
{datum.bin0} to {datum.bin1}
</strong>
<div>
<strong>count </strong>
<strong>{t('count')} </strong>
{datum.count}
</div>
<div>
<strong>cumulative </strong>
<strong>{t('cumulative')} </strong>
{datum.cumulative}
</div>
</div>
Expand Down

0 comments on commit 35e5608

Please sign in to comment.