From 5ddc6c21e9dbcf41cf22efb75bf0230f27ead734 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Sat, 19 May 2018 12:00:56 -0700 Subject: [PATCH] stats: Clean up line spacing in populate_number_of_users in stats.js. We use this compressed form in our other layout definitions. Makes it easier to visually digest. --- static/js/stats/stats.js | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/static/js/stats/stats.js b/static/js/stats/stats.js index 5efadaa28f..da0ee11ad5 100644 --- a/static/js/stats/stats.js +++ b/static/js/stats/stats.js @@ -630,32 +630,16 @@ function populate_number_of_users(data) { var layout = { width: 750, height: 370, - margin: { - l: 40, r: 0, b: 100, t: 20, - }, + margin: { l: 40, r: 0, b: 100, t: 20 }, xaxis: { fixedrange: true, rangeselector: { - x: 0.808, - y: -0.33, + x: 0.808, y: -0.33, buttons: [ - { - count: 30, - label: i18n.t('Last 30 days'), - step: 'day', - stepmode: 'backward', - }, - { - step: 'all', - label: i18n.t('All time'), - }, - ], - }, - }, - yaxis: { - fixedrange: true, - rangemode: 'tozero', - }, + { count: 30, label: i18n.t('Last 30 days'), step: 'day', stepmode: 'backward' }, + { step: 'all', label: i18n.t('All time') }, + ]}}, + yaxis: { fixedrange: true, rangemode: 'tozero' }, font: font_14pt, };