Skip to content

Commit

Permalink
Dynamically color stroke when redrawing bars (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdavies authored and kt3k committed Aug 16, 2017
1 parent d2cbde3 commit 73ac186
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shape.bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ c3_chart_internal_fn.redrawBar = function (drawBar, withTransition) {
return [
(withTransition ? this.mainBar.transition(Math.random().toString()) : this.mainBar)
.attr('d', drawBar)
.style("stroke", this.color)
.style("fill", this.color)
.style("opacity", 1)
];
Expand Down

0 comments on commit 73ac186

Please sign in to comment.