]> source.dussan.org Git - sonarqube.git/commit
SONAR-2074 Improve timeline widget
authorFabrice Bellingard <bellingard@gmail.com>
Mon, 22 Aug 2011 16:59:58 +0000 (18:59 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Mon, 22 Aug 2011 16:59:58 +0000 (18:59 +0200)
commita771c38d51e041fc274e567effa9e06a2566b6cf
tree97f01175cbdcdcf5b8cfc21979d713e5f11c14f2
parent69c57fc4be9f4e552c69a6cdaeb5ee294eaabc62
SONAR-2074 Improve timeline widget

- Add top and bottom "padding" inside the graph for better readibility
- Display a message if only 1 snapshot available
- Display the "legend" under the graph with localized metric names
- Add possibility to specify widget height in the options
- Select first the last snapshot values when rendering the widget
- Add date label (localized)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimelineWidget.java
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/webapp/WEB-INF/app/models/trends_chart.rb
sonar-server/src/main/webapp/javascripts/protovis-sonar.js