fix plotly

This commit is contained in:
Simon Christ 2021-11-26 13:32:29 +01:00
parent 6baa120245
commit c94cf1855d

View File

@ -754,7 +754,7 @@ function plotly_series(plt::Plot, series::Series)
plotly_polar!(plotattributes_out, series) plotly_polar!(plotattributes_out, series)
plotly_hover!(plotattributes_out, series[:hover]) plotly_hover!(plotattributes_out, series[:hover])
return plotattributes_out return [plotattributes_out]
end end
function plotly_series_shapes(plt::Plot, series::Series, clims) function plotly_series_shapes(plt::Plot, series::Series, clims)
@ -1030,7 +1030,7 @@ end
# get a list of dictionaries, each representing the series params # get a list of dictionaries, each representing the series params
function plotly_series(plt::Plot) function plotly_series(plt::Plot)
[plotly_series(plt, series) for series in plt.series_list] reduce(vcat, plotly_series(plt, series) for series in plt.series_list)
end end
# get json string for a list of dictionaries, each representing the series params # get json string for a list of dictionaries, each representing the series params