Skip to content

Commit

Permalink
adding clip path to circles
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Dec 5, 2016
1 parent be16b14 commit 188131b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ export default function AreaChartFactory(Private) {
const isHorizontal = this.getCategoryAxis().axisConfig.isHorizontal();

const layer = svg.append('g')
.attr('class', 'points area');
.attr('class', 'points area')
.attr('clip-path', 'url(#' + this.baseChart.clipPathId + ')');

// append the circles
const circles = layer.selectAll('circles')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default function LineChartFactory(Private) {
const radiusStep = ((radii.max - radii.min) || (radii.max * 100)) / Math.pow(this.seriesConfig.radiusRatio, 2);

const layer = svg.append('g')
.attr('class', 'points line');
.attr('class', 'points line')
.attr('clip-path', 'url(#' + this.baseChart.clipPathId + ')');

const circles = layer
.selectAll('circle')
Expand Down

0 comments on commit 188131b

Please sign in to comment.