aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-04-26 08:51:21 +0200
committerGitHub <noreply@github.com>2017-04-26 08:51:21 +0200
commit5c0394c5645ceafb88511f1bf9d5bf6ba39cf596 (patch)
treea9673bde685711edf42f1aa6407e8192b30ef530 /server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js
parent99da5bcecc8c5b31f2d2a9bed7337c05829a4d93 (diff)
downloadsonarqube-5c0394c5645ceafb88511f1bf9d5bf6ba39cf596.tar.gz
sonarqube-5c0394c5645ceafb88511f1bf9d5bf6ba39cf596.zip
SONAR-8978 rename bubble charts (#1974)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js b/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js
new file mode 100644
index 00000000000..66ad04d16a2
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.js
@@ -0,0 +1,36 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2017 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+// @flow
+import React from 'react';
+import SimpleBubbleChart from './SimpleBubbleChart';
+
+export default class Coverage extends React.PureComponent {
+ render() {
+ return (
+ <SimpleBubbleChart
+ {...this.props}
+ xMetric={{ key: 'complexity', type: 'SHORT_INT' }}
+ yMetric={{ key: 'coverage', type: 'PERCENT' }}
+ yDomain={[100, 0]}
+ sizeMetric={{ key: 'uncovered_lines', type: 'SHORT_INT' }}
+ />
+ );
+ }
+}