From f80afddd8f393aa8e4338634a1d0f9aba0f4a0ad Mon Sep 17 00:00:00 2001 From: Josh Day Date: Tue, 12 Dec 2017 15:15:12 -0500 Subject: [PATCH 1/2] add strokewidth and bar_width for plotly's bar --- src/backends/plotly.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 20edb066..4dc7a675 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -541,7 +541,10 @@ function plotly_series(plt::Plot, series::Series) else y, x, "h" end - d_out[:marker] = KW(:color => rgba_string(series[:fillcolor])) + d_out[:width] = series[:bar_width] + info(series[:strokewidth]) + d_out[:marker] = KW(:color => rgba_string(series[:fillcolor]), + :width => series[:strokewidth]) elseif st == :heatmap d_out[:type] = "heatmap" From 50bec7a461920d08f3359aa6f147a3dad012f280 Mon Sep 17 00:00:00 2001 From: Josh Day Date: Tue, 12 Dec 2017 15:18:17 -0500 Subject: [PATCH 2/2] cleanup --- src/backends/plotly.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 4dc7a675..85ae90bf 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -542,7 +542,6 @@ function plotly_series(plt::Plot, series::Series) y, x, "h" end d_out[:width] = series[:bar_width] - info(series[:strokewidth]) d_out[:marker] = KW(:color => rgba_string(series[:fillcolor]), :width => series[:strokewidth])