Skip to content

Commit 6c6cc46

Browse files
committed
axis ticks to not lose styling when calling 'restyle'
1 parent 58fd690 commit 6c6cc46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/parcoords/parcoords.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ module.exports = function(root, svg, styledData, layout, callbacks) {
523523
var axis = axisOverlays.selectAll('.axis')
524524
.data(repeat, keyFun);
525525

526-
var axisEnter = axis.enter()
526+
axis.enter()
527527
.append('g')
528528
.classed('axis', true);
529529

@@ -546,14 +546,14 @@ module.exports = function(root, svg, styledData, layout, callbacks) {
546546
.scale(scale));
547547
});
548548

549-
axisEnter
549+
axis
550550
.selectAll('.domain, .tick')
551551
.attr('fill', 'none')
552552
.attr('stroke', 'black')
553553
.attr('stroke-opacity', 0.25)
554554
.attr('stroke-width', '1px');
555555

556-
axisEnter
556+
axis
557557
.selectAll('text')
558558
.style('font-weight', 100)
559559
.style('font-size', '10px')

0 commit comments

Comments
 (0)