Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation mismatch re: polar + bargap #7337

Open
lswainemoore opened this issue Jan 16, 2025 · 2 comments
Open

Documentation mismatch re: polar + bargap #7337

lswainemoore opened this issue Jan 16, 2025 · 2 comments

Comments

@lswainemoore
Copy link

Hi--I'm not sure how exactly this works, but I believe the layout documentation for polar traces doesn't match the behavior in the code. In particular, the bargap property seems to be missing.

For a barpolar type plot, I can verify that it works when nested within the polar key of the layout object, but not when at the parent layout level (as the documentation seems to imply: https://plotly.com/javascript/reference/layout/.

Although most of the inner workings are beyond me, behavior (not documentation) seems consistent with bits of code like:

All this leads me to believe that the documentation is wrong, or rather that whatever schema (I'm guessing this?) is informing the documentation is wrong. Of course, I wouldn't be too bothered by this, except that I assume the same schema that generates the documentation also informs the types here, which are also missing bargap, and is giving typescript grief. I know (think?) the types are not plotly's responsibility, but I think fixing the schema here would help downstream.

Thanks, and I appreciate your work.

@lswainemoore lswainemoore changed the title Documentation mismatch re: barpolar Documentation mismatch re: polar + bargap Jan 16, 2025
@lswainemoore
Copy link
Author

By the way, this issue seems related: #3023, but it looks like the fix maybe didn't get far enough? Not honestly sure.

@lswainemoore
Copy link
Author

I guess there is this:

'you might need to reduce *opacity* to see multiple bars.'
, which seems to manifest a separate entry in here, though not in the polar layout section. I have to say I am now quite confused about what the intentions are here--any help with the relationship between all these files would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant