]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6359 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Tue, 27 Oct 2015 13:13:41 +0000 (14:13 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 27 Oct 2015 13:13:41 +0000 (14:13 +0100)
server/sonar-web/src/main/js/apps/overview/size/complexity-distribution.js
server/sonar-web/src/main/js/apps/overview/size/language-distribution.js
server/sonar-web/src/main/js/components/charts/treemap.js
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 8ff3da2740d05e10da489b6dccee97682cd04470..ac5796fa5841279dae6e745f1392a6adb8c6b1d1 100644 (file)
@@ -47,7 +47,9 @@ export class ComplexityDistribution extends React.Component {
     return <BarChart data={data}
                      xTicks={xTicks}
                      xValues={xValues}
+                     width={40 * data.length * 2 + 60}
                      height={HEIGHT}
+                     barsWidth={40}
                      padding={[25, 30, 50, 30]}/>;
   }
 
index ab724920dc4ac76255a50990d15f8a71e703e30a..5e3acfaa4011b655e82050ab16d87db3e98eb60c 100644 (file)
@@ -61,7 +61,9 @@ export class LanguageDistribution extends React.Component {
     return <BarChart data={data}
                      xTicks={xTicks}
                      xValues={xValues}
+                     width={40 * data.length * 2 + 60}
                      height={HEIGHT}
+                     barsWidth={40}
                      padding={[25, 30, 50, 30]}/>;
   }
 
index 9e311a838e37c6793ccb850f1ffe58546029214f..be054fdc055fbe8a45a2f8670c04dddbfde800d6 100644 (file)
@@ -87,6 +87,7 @@ export const Treemap = React.createClass({
     let treemap = d3.layout.treemap()
                     .round(true)
                     .value(d => sizeScale(d.size))
+                    .sort((a, b) => a.value - b.value)
                     .size([this.state.width, 360]);
     let nodes = treemap
         .nodes({ children: this.props.items })
index b6c73826f3e0e34fc8ebc5e027d82f129653d040..67cacb16ffedc1dbca4f8d2442b7287330b8ecbb 100644 (file)
@@ -3128,3 +3128,8 @@ overview.period.days=last {0} days
 overview.gate.ERROR=Failed
 overview.gate.WARN=Warning
 overview.gate.OK=Passed
+
+overview.domain.issues=Issues & Technical Debt
+overview.domain.coverage=Coverage & Tests
+overview.domain.duplications=Duplications
+overview.domain.size=Size & Complexity