We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f669b10 commit c8c5dc3Copy full SHA for c8c5dc3
src/charts/commitsByAuthor.js
@@ -40,11 +40,19 @@ angular.module('adf.widget.scm')
40
data[author]= entry.count;
41
});
42
43
+ var options = {
44
+ legend: {
45
+ display: true,
46
+ position: "bottom"
47
+ }
48
+ };
49
+
50
var chart = {
51
labels: [],
52
data: [],
53
series: ["Commits"],
- class: "chart-pie"
54
+ class: "chart-pie",
55
+ options: options
56
};
57
58
angular.forEach(data, function (count, author) {
src/charts/pie-chart.html
@@ -5,7 +5,7 @@
5
<div ng-if="vm.chart">
6
<canvas id="pie" class="chart chart-pie"
7
chart-legend="true" chart-data="vm.chart.data"
8
- chart-labels="vm.chart.labels">
+ chart-labels="vm.chart.labels" chart-options="vm.chart.options">
9
</canvas>
10
</div>
11
0 commit comments