summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/utils
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-06-20 08:50:31 +0000
committerJose Ivan Vargas Lopez <jvargas@gitlab.com>2017-06-26 14:44:03 +0000
commit871bf96c9b231b5c2281a021599959c4f164b479 (patch)
tree31b12a94ae2faaf39792f75f2b117a94df0ade01 /app/assets/javascripts/monitoring/utils
parent676c559409b8b51e3e97abab24bbb44207744e13 (diff)
downloadgitlab-ce-871bf96c9b231b5c2281a021599959c4f164b479.tar.gz
Merge branch 'additional-metrics-dashboard' into '28717-additional-metrics-review-branch'
Additional metrics dashboard See merge request !11740
Diffstat (limited to 'app/assets/javascripts/monitoring/utils')
-rw-r--r--app/assets/javascripts/monitoring/utils/measurements.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/utils/measurements.js b/app/assets/javascripts/monitoring/utils/measurements.js
new file mode 100644
index 00000000000..a60d2522f49
--- /dev/null
+++ b/app/assets/javascripts/monitoring/utils/measurements.js
@@ -0,0 +1,39 @@
+export default {
+ small: { // Covers both xs and sm screen sizes
+ margin: {
+ top: 40,
+ right: 40,
+ bottom: 50,
+ left: 40,
+ },
+ legends: {
+ width: 15,
+ height: 30,
+ },
+ backgroundLegend: {
+ width: 30,
+ height: 50,
+ },
+ axisLabelLineOffset: -20,
+ legendOffset: 52,
+ },
+ large: { // This covers both md and lg screen sizes
+ margin: {
+ top: 80,
+ right: 80,
+ bottom: 100,
+ left: 80,
+ },
+ legends: {
+ width: 20,
+ height: 35,
+ },
+ backgroundLegend: {
+ width: 30,
+ height: 150,
+ },
+ axisLabelLineOffset: 20,
+ legendOffset: 55,
+ },
+ ticks: 3,
+};