Skip to content

Commit

Permalink
Merge pull request #454 from jthomassie/fix-clip-path
Browse files Browse the repository at this point in the history
fix clip-paths issue on line charts in dashboard
  • Loading branch information
spenceralger committed Oct 2, 2014
2 parents 5b79aa8 + a991985 commit 3f896fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/kibana/components/vislib/visualizations/line_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,13 @@ define(function (require) {
var clipPathBuffer = 5;
var startX = 0;
var startY = 0 - clipPathBuffer;
var id = 'chart-area' + _.uniqueId();

// Creating clipPath
return svg
.attr('clip-path', 'url(#chart-area)')
.attr('clip-path', 'url(#' + id + ')')
.append('clipPath')
.attr('id', 'chart-area')
.attr('id', id)
.append('rect')
.attr('x', startX)
.attr('y', startY)
Expand Down

0 comments on commit 3f896fd

Please sign in to comment.