diff --git a/CHANGELOG.md b/CHANGELOG.md index c6809351..25c52727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org). -## [Unreleased] +## [3.7.1] - 2022-05-25 ### Added * *Nothing* @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), * *Nothing* ### Fixed -* *Nothing* +* [#653](https://github.com/shlinkio/shlink-web-client/pull/653) Fixed rendering values greater than 1000 in charts, when the browser has certain locales configured. ## [3.7.0] - 2022-05-14 diff --git a/src/utils/helpers/charts.ts b/src/utils/helpers/charts.ts index 5a849064..7914eee8 100644 --- a/src/utils/helpers/charts.ts +++ b/src/utils/helpers/charts.ts @@ -11,8 +11,6 @@ export const pointerOnHover = ({ native }: ChartEvent, [firstElement]: ActiveEle canvas.style.cursor = firstElement ? 'pointer' : 'default'; }; -export const renderChartLabel = ({ dataset, formattedValue }: TooltipItem) => - `${dataset.label}: ${prettify(formattedValue)}`; +export const renderChartLabel = ({ dataset, raw }: TooltipItem) => `${dataset.label}: ${prettify(`${raw}`)}`; -export const renderPieChartLabel = ({ label, formattedValue }: TooltipItem) => - `${label}: ${prettify(formattedValue)}`; +export const renderPieChartLabel = ({ label, raw }: TooltipItem) => `${label}: ${prettify(`${raw}`)}`;