aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js b/server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js
index 7428bdd3282..86379691768 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/StaticGraphs.js
@@ -47,8 +47,6 @@ export default class StaticGraphs extends React.PureComponent {
formatYTick = tick => formatMeasure(tick, getShortType(this.props.metricsType));
- formatValue = value => formatMeasure(value, this.props.metricsType);
-
getEvents = () => {
const { analyses, eventFilter } = this.props;
const filteredEvents = analyses.reduce((acc, analysis) => {
@@ -73,7 +71,7 @@ export default class StaticGraphs extends React.PureComponent {
return sortBy(filteredEvents, 'date');
};
- hasHistoryData = () => some(this.props.series, serie => serie.data && serie.data.length > 2);
+ hasSeriesData = () => some(this.props.series, serie => serie.data && serie.data.length > 2);
render() {
const { loading } = this.props;
@@ -88,7 +86,7 @@ export default class StaticGraphs extends React.PureComponent {
);
}
- if (!this.hasHistoryData()) {
+ if (!this.hasSeriesData()) {
return (
<div className="project-activity-graph-container">
<div className="note text-center">
@@ -111,7 +109,6 @@ export default class StaticGraphs extends React.PureComponent {
height={height}
width={width}
interpolate="linear"
- formatValue={this.formatValue}
formatYTick={this.formatYTick}
leakPeriodDate={this.props.leakPeriodDate}
metricType={this.props.metricsType}