adding clip path to circles

This commit is contained in:
ppisljar 2016-11-22 14:43:55 +01:00
parent be16b14283
commit 188131bdad
2 changed files with 4 additions and 2 deletions

View file

@ -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')

View file

@ -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')