Skip to content

Commit 04049f2

Browse files
committed
revisit bar-like hideOutsideRangePoints
1 parent ba1b6c0 commit 04049f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/drawing/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ drawing.hideOutsideRangePoints = function(traceGroups, subplot) {
110110
var trace = d[0].trace;
111111
var xcalendar = trace.xcalendar;
112112
var ycalendar = trace.ycalendar;
113-
var selector =
114-
trace.type === 'bar' ? '.bartext' :
115-
trace.type === 'waterfall' ? '.bartext,.line' :
116-
trace.type === 'funnel' ? '.bartext,.line,.region' :
117-
'.point,.textpoint';
113+
var selector = Registry.traceIs(trace, 'bar-like') ? '.bartext' : '.point,.textpoint';
118114

119115
traceGroups.selectAll(selector).each(function(d) {
120116
drawing.hideOutsideRangePoint(d, d3.select(this), xa, ya, xcalendar, ycalendar);

0 commit comments

Comments
 (0)