File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -693,16 +693,11 @@ module.exports = function setConvert(ax, fullLayout) {
693
693
var breaksOut = [ ] ;
694
694
if ( ! ax . breaks ) return breaksOut ;
695
695
696
- var breaksIn ;
697
- if ( ax . type === 'date' ) {
698
- breaksIn = ax . breaks . slice ( ) . sort ( function ( a , b ) {
699
- if ( a . pattern === '%w' && b . pattern === '%H' ) return - 1 ;
700
- else if ( b . pattern === '%w' && a . pattern === '%H' ) return 1 ;
701
- return 0 ;
702
- } ) ;
703
- } else {
704
- breaksIn = ax . breaks ;
705
- }
696
+ var breaksIn = ax . breaks . slice ( ) . sort ( function ( a , b ) {
697
+ if ( a . pattern === '%w' && b . pattern === '%H' ) return - 1 ;
698
+ else if ( b . pattern === '%w' && a . pattern === '%H' ) return 1 ;
699
+ return 0 ;
700
+ } ) ;
706
701
707
702
var addBreak = function ( min , max ) {
708
703
min = Lib . constrain ( min , r0 , r1 ) ;
You can’t perform that action at this time.
0 commit comments