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

[DEV-759] [BUG] pygwalker visualization size not rendered correctly in streamlit app #479

Open
ObservedObserver opened this issue Mar 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ObservedObserver
Copy link
Member

ObservedObserver commented Mar 13, 2024

Original bug report: https://toriaezuugoku.com/pygwalker-2/

Windows10
streamlit==1.27.0
pygwalker==0.4.7

It seems pygwalker does not rendered with correct size so the charts in the article only shows legend parts.

image

related code with bug

chart_size_config["mode"] = "fixed"

DEV-759

@ObservedObserver ObservedObserver added the bug Something isn't working label Mar 13, 2024
@ObservedObserver ObservedObserver changed the title [BUG] pygwalker visualization size not rendered correctly in streamlit app [DEV-759] [BUG] pygwalker visualization size not rendered correctly in streamlit app Mar 13, 2024
@longxiaofei
Copy link
Member

This is because when the size of graphic-walker is auto, pygwalker does not correctly give the streamlit iframe a correct width and height.

chart_size_config["mode"] = "fixed"

The above code is for pygwalker to render the graphic-walker chart according to the width and height passed in by the user.

@ObservedObserver
Copy link
Member Author

Progress update:

Identified problems,

  1. pygwalker changed users's size mode settings which it shouldn't
  2. pygwalker for now does not implement streamlit components in a offical way, which make it a liitle bit hard to set the iframe container size correctly.

Actions:

  • Formally refactor pygwalker in streamlit api to the recommended implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants