In polar layout the griddash attribute for radialaxis/angularaxis (listed in reference) is not accepted/active
See original GitHub issueBy javascript and python reference for plotly.js, respectively plotly.py, there is a radialaxis attribute, griddash
:
https://plotly.com/javascript/reference/layout/polar/#layout-polar-radialaxis-griddash,
https://plotly.com/python/reference/layout/polar/#layout-polar-radialaxis-griddash
But plotly.py throws the error
ValueError: Invalid property specified for object of type plotly.graph_objs.layout.polar.RadialAxis: 'griddash'
when in polar layout is set radialxis_griddash="dash"
, while PlotlyJS.jl displays the radialaxis with the default "solid"
style.
It seems that plotly.js replaces the griddash read from the figure json version (created by PlotlyJS.jl) with gridash="solid"
.
Is this the intended behaviour? I ask because on plotly community has been asked a question on how to plot a dashed radialaxis https://community.plotly.com/t/barpolar-is-it-possible-to-change-radialaxis-line-style/63872
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
You’ll have to upgrade to
plotly==5.8
(released last night) for these to work 😃The
graph_objects
module provides python-level validation and error messages for the Plotly.js schema whereas PlotlyJS.jl doesn’t… it’s just a different design. We prefer the Python module this way so there is less confusion about which version of Plotly.js is baked in. V5.7 came with Plotly.js 2.11 which didn’t have grid dash support so it would have been weird for it to accept this attribute without complaining.As of Plotly.js 2.9 you can mouse over the Plotly logo in the modebar to check which version of Plotly.js you have.