Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42b71d3

Browse files
committed
code simplification (hat tip: AlexJ)
1 parent 7ef816e commit 42b71d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,15 +564,14 @@ module.exports = function(root, svg, styledData, layout, callbacks) {
564564
var wantedTickCount = d.model.height / d.model.tickDistance;
565565
var scale = d.domainScale;
566566
var sdom = scale.domain();
567-
var texts = d.ticktext;
568567
d3.select(this)
569568
.call(d3.svg.axis()
570569
.orient('left')
571570
.tickSize(4)
572571
.outerTickSize(2)
573572
.ticks(wantedTickCount, d.tickFormat) // works for continuous scales only...
574573
.tickValues(d.ordinal ? // and this works for ordinal scales
575-
sdom.map(toText(Lib.identity), texts) :
574+
sdom :
576575
null)
577576
.tickFormat(d.ordinal ? function(d) {return d;} : null)
578577
.scale(scale));

0 commit comments

Comments
 (0)