]> source.dussan.org Git - sonarqube.git/commitdiff
Do not round numbers in project activity graph's tooltips
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Tue, 15 Aug 2017 08:01:51 +0000 (10:01 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 17 Aug 2017 14:42:15 +0000 (16:42 +0200)
server/sonar-web/src/main/js/apps/projectActivity/components/GraphHistory.js

index b3cf468b3f773b07ba9f004df9f09f0794440237..b5b6d776ee995f6843e0d6e6ce12f81a703a0668 100644 (file)
@@ -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}