Skip to content

Commit f11aef9

Browse files
committed
Update rangeselector attributes
1 parent 2264bdd commit f11aef9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/components/rangeselector/attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ module.exports = {
7575

7676
bgcolor: {
7777
valType: 'color',
78+
dflt: colorAttrs.background,
7879
role: 'style',
79-
description: 'Sets the range selector background color.'
80+
description: 'Sets the background color of the range selector buttons.'
8081
},
8182
bordercolor: {
8283
valType: 'color',

src/components/rangeselector/button_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
values: ['month', 'year', 'day', 'hour', 'minute', 'second', 'all'],
1717
dflt: 'month',
1818
description: [
19-
''
19+
'The unit of measurement that the `count` value will set the range by.'
2020
].join(' ')
2121
},
2222
stepmode: {

src/components/rangeselector/get_update_object.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ module.exports = function getUpdateObject(axisLayout, buttonLayout) {
1717

1818
if(buttonLayout.step === 'all') {
1919
update = {
20-
'xaxis.autorange': true,
21-
'xaxis.range': null
20+
'xaxis.autorange': true
2221
};
2322
}
2423
else {

src/components/rangeslider/attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ module.exports = {
2525
},
2626
borderwidth: {
2727
valType: 'integer',
28-
dflt: 0,
28+
dflt: 1,
29+
min: 0,
2930
role: 'style',
3031
description: 'Sets the border color of the range slider.'
3132
},

0 commit comments

Comments
 (0)