Skip to content

Commit

Permalink
fix(core): Fix interference of thresholds and bar chart elements
Browse files Browse the repository at this point in the history
  • Loading branch information
theiliad committed Jan 16, 2019
1 parent 2d47bb4 commit 67ff065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/bar-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class BarChart extends BaseAxisChart {
const self = this;
const { accessibility } = this.options;

this.svg.selectAll("rect")
this.svg.selectAll("rect.bar")
.on("click", function(d) {
self.dispatchEvent("bar-onClick", d);
})
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/base-axis-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export class BaseAxisChart extends BaseChart {
// Applies to thresholds being added
thresholdRects.enter()
.append("rect")
.classed("bar", true)
.classed("threshold-bar", true)
.attr("x", 0)
.attr("y", d => calculateYPosition(d))
.attr("width", width)
Expand Down

0 comments on commit 67ff065

Please sign in to comment.