Browse Source

Dynamically color stroke when redrawing bars (#2137)

pull/2111/merge
Nick Davies 7 years ago committed by Yoshiya Hinosawa
parent
commit
73ac186278
  1. 1
      src/shape.bar.js

1
src/shape.bar.js

@ -46,6 +46,7 @@ c3_chart_internal_fn.redrawBar = function (drawBar, withTransition) {
return [ return [
(withTransition ? this.mainBar.transition(Math.random().toString()) : this.mainBar) (withTransition ? this.mainBar.transition(Math.random().toString()) : this.mainBar)
.attr('d', drawBar) .attr('d', drawBar)
.style("stroke", this.color)
.style("fill", this.color) .style("fill", this.color)
.style("opacity", 1) .style("opacity", 1)
]; ];

Loading…
Cancel
Save