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

Implement plotly dash integration #4

Open
ananmaysharan opened this issue Oct 25, 2022 · 1 comment
Open

Implement plotly dash integration #4

ananmaysharan opened this issue Oct 25, 2022 · 1 comment

Comments

@ananmaysharan
Copy link

Would love to see a dash component for rosely so it could be used in Dash dashboards

@JohnVolk
Copy link
Owner

Hi @ananmaysharan thanks for the suggestion. I'm not too familiar with Dash but taking a quick look it appears that this could be done easily by feeding the figure created by Rosely to the Dash API which is shown in a short code snippet here in this tutorial.

Just in case you were not aware you can return the ploty figure from Rosely like so:

# WR is a plotly.WindRose instance
fig = WR.plot(output_type='return')

You can then send that to Dash following the tutorial and using their API pretty easily.

It appears that Rosely has been used with Dash dashboards in this project: https://github.com/romarowski/local_air_quality_dashboard

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

2 participants