Skip to content

Commit d46a86a

Browse files
remove fragment when building clip path url
fixes #1079, again
1 parent 81926d6 commit d46a86a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coordinate-grid-mixin.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,13 @@ dc.coordinateGridMixin = function (_chart) {
192192
_parent = parent;
193193
}
194194

195+
var href = window.location.href.split('#')[0];
196+
195197
_g = _parent.append('g');
196198

197199
_chartBodyG = _g.append('g').attr('class', 'chart-body')
198200
.attr('transform', 'translate(' + _chart.margins().left + ', ' + _chart.margins().top + ')')
199-
.attr('clip-path', 'url(' + window.location.href + '#' + getClipPathId() + ')');
201+
.attr('clip-path', 'url(' + href + '#' + getClipPathId() + ')');
200202

201203
return _g;
202204
};

0 commit comments

Comments
 (0)