diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-08-15 10:01:51 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-08-17 16:42:15 +0200 |
commit | 4b2726e9feb0dbcaa07cf6dfe7d7bec3656d4ea0 (patch) | |
tree | 0b4cbb39367cd0f1dffde2f5bf43aa8a9dd83708 /server/sonar-web/src/main | |
parent | b7180e84a86cc6aef209f24ddba9da06aeb46010 (diff) | |
download | sonarqube-4b2726e9feb0dbcaa07cf6dfe7d7bec3656d4ea0.tar.gz sonarqube-4b2726e9feb0dbcaa07cf6dfe7d7bec3656d4ea0.zip |
Do not round numbers in project activity graph's tooltips
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 && <GraphsTooltips events={this.props.events} - formatValue={this.formatValue} + formatValue={this.formatTooltipValue} graph={graph} graphWidth={width} measuresHistory={this.props.measuresHistory} |