Skip to main content
cngx-src documentation

provideChartI18n

Functioncommon/chart/i18n

projects/common/chart/i18n/chart-i18n.ts

Description#

Provider helper for custom chart i18n strings.

providers: [provideChartI18n({
  summary: ({ trend, min, max, current, thresholds }) =>
    `${trend === 'up' ? 'Aufwärtstrend' : 'Abwärtstrend'}. Min ${min}, Max ${max}, aktuell ${current}.`,
  dataTable: () => 'Datentabelle',
  // ...remaining keys
})]

Signature#

provideChartI18n(i18n: CngxChartI18n)

Parameters#

@parami18nCngxChartI18n

Returns#

literal type