Skip to content

Commit

Permalink
fix(bar-stacked): render 0 value bars
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan McCaul committed Apr 8, 2020
1 parent 316eb8d commit 425e11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/graphs/bar-stacked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class StackedBar extends Bar {
// Update data on all bars
const bars = svg.selectAll("g.bars").selectAll("path.bar")
// Remove bars with a start and end value of 0
.data(data => data.filter(d => !(d[0] === 0 && d[1] === 0)));
.data(data => data);

// Remove bars that need to be removed
bars.exit()
Expand Down Expand Up @@ -153,7 +153,7 @@ export class StackedBar extends Bar {

const rangeIdentifier = self.services.cartesianScales.getRangeIdentifier();
const { groupMapsTo } = self.model.getOptions().data;

// Show tooltip
self.services.events.dispatchEvent("show-tooltip", {
hoveredElement,
Expand Down

0 comments on commit 425e11d

Please sign in to comment.