Skip to content

Commit 0c8953d

Browse files
committed
tickFormat for ordinals to not use the scale format defaults
1 parent f63c36f commit 0c8953d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ module.exports = function(root, svg, styledData, layout, callbacks) {
541541
.outerTickSize(2)
542542
.ticks(wantedTickCount, d.tickFormat) // works for continuous scales only...
543543
.tickValues(d.ordinal ? // and this works for ordinal scales
544-
sdom.filter(function(d, i) {return !(i % Math.round((sdom.length / wantedTickCount)));})
545-
.map(function(d, i) {return texts && texts[i] || d;}) :
544+
sdom.map(function(d, i) {return texts && texts[i] || d;}) :
546545
null)
546+
.tickFormat(d.ordinal ? function(d) {return d;} : null)
547547
.scale(scale));
548548
});
549549

0 commit comments

Comments
 (0)