We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00af90 commit 53196e5Copy full SHA for 53196e5
src/plots/cartesian/set_convert.js
@@ -693,16 +693,11 @@ module.exports = function setConvert(ax, fullLayout) {
693
var breaksOut = [];
694
if(!ax.breaks) return breaksOut;
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
- }
+ var breaksIn = ax.breaks.slice().sort(function(a, b) {
+ if(a.pattern === '%w' && b.pattern === '%H') return -1;
+ else if(b.pattern === '%w' && a.pattern === '%H') return 1;
+ return 0;
+ });
706
707
var addBreak = function(min, max) {
708
min = Lib.constrain(min, r0, r1);
0 commit comments