Skip to content

Polar plots broken in v1.35.0 (visible on docs site) #2456

Closed
@jacobq

Description

@jacobq

If you go to the Polar Charts in plotly.js section of the documentation (tested in Chrome 64) you will notice that the grid lines are plotted and the radial axis ticks & labels are present, but the angular axis labels and the traces are not. For example, this first codepen does not work.

Instead, an error message like the one below appears in the console. This is either a problem with plotly.js or a problem with the docs, but I can't imagine this not being a problem.

Uncaught TypeError: node.getAttribute is not a function
    at Array.d3_selectionPrototype.classed (VM456 plotly-latest.js:754)
    at ax._transfn (VM456 plotly-latest.js:173293)
    at SVGTextElement.<anonymous> (VM456 plotly-latest.js:27849)
    at VM456 plotly-latest.js:1028
    at d3_selection_each (VM456 plotly-latest.js:1034)
    at Array.d3_selectionPrototype.each (VM456 plotly-latest.js:1027)
    at positionLabels (VM456 plotly-latest.js:27845)
    at SVGTextElement.<anonymous> (VM456 plotly-latest.js:27808)
    at VM456 plotly-latest.js:1028
    at d3_selection_each (VM456 plotly-latest.js:1034)

Changing the script source to v1.34.0 seems to fix the problem, so this could be a regression introduced in v1.35.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething brokenregressionthis used to work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions