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.
This commit is contained in:
Rishi Gupta 2018-05-19 12:00:56 -07:00 committed by Tim Abbott
parent 66a589c7a7
commit 5ddc6c21e9
1 changed files with 6 additions and 22 deletions

View File

@ -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,
};