From 73ac1862781351ccfbc71de14c0071677a3e85bd Mon Sep 17 00:00:00 2001 From: Nick Davies Date: Tue, 15 Aug 2017 21:47:34 -0500 Subject: [PATCH] Dynamically color stroke when redrawing bars (#2137) --- src/shape.bar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shape.bar.js b/src/shape.bar.js index e027541..7bf538f 100644 --- a/src/shape.bar.js +++ b/src/shape.bar.js @@ -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) ];