fix plotly horizontal bars
This commit is contained in:
parent
f615a5d05e
commit
14fd3c94b5
@ -30,6 +30,7 @@ const _plotly_attr = merge_with_base_supported([
|
|||||||
:aspect_ratio,
|
:aspect_ratio,
|
||||||
:hover,
|
:hover,
|
||||||
:inset_subplots,
|
:inset_subplots,
|
||||||
|
:bar_width,
|
||||||
])
|
])
|
||||||
|
|
||||||
const _plotly_seriestype = [
|
const _plotly_seriestype = [
|
||||||
@ -423,8 +424,11 @@ function plotly_series(plt::Plot, series::Series)
|
|||||||
|
|
||||||
elseif st == :bar
|
elseif st == :bar
|
||||||
d_out[:type] = "bar"
|
d_out[:type] = "bar"
|
||||||
d_out[:x], d_out[:y] = x, y
|
d_out[:x], d_out[:y], d_out[:orientation] = if isvertical(series)
|
||||||
d_out[:orientation] = isvertical(series) ? "v" : "h"
|
x, y, "v"
|
||||||
|
else
|
||||||
|
y, x, "h"
|
||||||
|
end
|
||||||
d_out[:marker] = KW(:color => rgba_string(series[:fillcolor]))
|
d_out[:marker] = KW(:color => rgba_string(series[:fillcolor]))
|
||||||
|
|
||||||
elseif st == :heatmap
|
elseif st == :heatmap
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user