From 4b2726e9feb0dbcaa07cf6dfe7d7bec3656d4ea0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Tue, 15 Aug 2017 10:01:51 +0200 Subject: [PATCH] Do not round numbers in project activity graph's tooltips --- .../main/js/apps/projectActivity/components/GraphHistory.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.js b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.js index b3cf468b3f7..b5b6d776ee9 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.js @@ -64,6 +64,8 @@ export default class GraphHistory extends React.PureComponent { formatValue = (tick /*: string | number */) => formatMeasure(tick, getShortType(this.props.metricsType)); + formatTooltipValue = (tick /*: string | number */) => formatMeasure(tick, this.props.metricsType); + updateTooltip = ( selectedDate /*: ?Date */, tooltipXPos /*: ?number */, @@ -106,7 +108,7 @@ export default class GraphHistory extends React.PureComponent { tooltipXPos != null &&