From 04f27630457cebf89f5e2f33f11774e12cefb08f Mon Sep 17 00:00:00 2001 From: Jks Liu Date: Sat, 27 Nov 2021 12:31:58 +0800 Subject: [PATCH] plotly polar support, api changed in plotly.js v2.x.x https://plotly.com/javascript/polar-chart/ https://community.plotly.com/t/announcing-plotly-js-2-0/53675 --- src/backends/plotly.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index fde4b80b..05e87f11 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -1013,8 +1013,9 @@ function plotly_polar!(plotattributes_out::KW, series::Series) # convert polar plots x/y to theta/radius if ispolar(series[:subplot]) theta, r = pop!(plotattributes_out, :x), pop!(plotattributes_out, :y) - plotattributes_out[:t] = rad2deg.(theta) + plotattributes_out[:theta] = rad2deg.(theta) plotattributes_out[:r] = r + plotattributes_out[:type] = :scatterpolar end end