Skip to content

Commit

Permalink
revised linechart to add unique id to clip-paths, closes #450
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Thomassie committed Oct 2, 2014
1 parent c8f8202 commit a991985
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 a991985

Please sign in to comment.