Skip to content

Commit

Permalink
Merge pull request #733
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwoodhull committed Dec 5, 2014
2 parents b7da957 + 49c1366 commit 74920e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/coordinate-grid-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,8 +958,10 @@ dc.coordinateGridMixin = function (_chart) {

function generateClipPath() {
var defs = dc.utils.appendOrSelect(_parent, 'defs');

var chartBodyClip = dc.utils.appendOrSelect(defs, 'clipPath').attr('id', getClipPathId());
// cannot select <clippath> elements; bug in WebKit, must select by id
// https://groups.google.com/forum/#!topic/d3-js/6EpAzQ2gU9I
var id = getClipPathId();
var chartBodyClip = dc.utils.appendOrSelect(defs, id).attr('id', id);

var padding = _clipPadding * 2;

Expand Down Expand Up @@ -990,6 +992,7 @@ dc.coordinateGridMixin = function (_chart) {
_chart._preprocessData();

drawChart(false);
generateClipPath();

return _chart;
};
Expand Down

0 comments on commit 74920e7

Please sign in to comment.