summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2013-12-16 12:46:39 +0600
committerStas Vilchik <vilchiks@gmail.com>2013-12-16 12:46:39 +0600
commit7564f6728efd42974be52913f7daecff66d0b778 (patch)
tree483259df4e92a429e5963a125894897a443935a0 /plugins/sonar-core-plugin
parent42ec714cbf47af998bd22f39eeefb9c77177b2d5 (diff)
downloadsonarqube-7564f6728efd42974be52913f7daecff66d0b778.tar.gz
sonarqube-7564f6728efd42974be52913f7daecff66d0b778.zip
SONAR-4952 Provide a new PieChart widget to display a measure filter
Display main metric label inside donut. Show legend. Clicking to the sector leads to component dashboard.
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb
index 2e9ae043948..84426eefbba 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/pie_chart.html.erb
@@ -41,6 +41,9 @@
.source(baseUrl + '/measures/search_filter?' + query)
.metricsPriority(metrics)
.height(<%= chartHeight %>)
+ .options({
+ baseUrl: baseUrl + '/dashboard/index/'
+ })
.render('#<%= containerId %>');
autoResize(500, function() {