Merge pull request #1304 from joshday/jd/histogram

plotly: bar_width and stroke_width support for bar plots
This commit is contained in:
Michael Krabbe Borregaard 2017-12-12 21:50:45 +01:00 committed by GitHub
commit 084d45141d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,9 @@ 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]
d_out[:marker] = KW(:color => rgba_string(series[:fillcolor]),
:width => series[:strokewidth])
elseif st == :heatmap
d_out[:type] = "heatmap"