Skip to content

Commit 37ed8fa

Browse files
committed
make charts responsive; place legend at the bottom
1 parent 6ea6d4e commit 37ed8fa

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/charts/commitsByAuthor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ angular.module('adf.widget.scm')
4545
legend: {
4646
display: true,
4747
position: "bottom"
48-
}
48+
},
49+
responsive: true
4950
};
5051

5152
var chart = {

src/charts/commitsByMonth.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ angular.module('adf.widget.scm')
4949
}
5050
}
5151
]
52-
}
52+
},
53+
legend: {
54+
display: true,
55+
position: "bottom"
56+
},
57+
responsive: true
5358
};
5459
var chart = {
5560
labels: [],

src/charts/commitsLastCommits.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ angular.module('adf.widget.scm')
4848
}
4949
}
5050
]
51-
}
51+
},
52+
legend: {
53+
display: true,
54+
position: "bottom"
55+
},
56+
responsive: true
5257
};
5358
var chartData = [];
5459
var chart = {

0 commit comments

Comments
 (0)