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

Create a standalone chart viewer app #7

Open
vojtamolda opened this issue Feb 7, 2020 · 1 comment
Open

Create a standalone chart viewer app #7

vojtamolda opened this issue Feb 7, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vojtamolda
Copy link
Owner

When a matplotlib chart is created in Python REPL, the .show() function displays the figure in nice, small window. The GUI of the app looks like this:

Matplotlib GUI

It would be nice to provide a similar user experience if one calls the .show() method of a Plotly figure in a Swift REPL. Current implementation shows a HTML document in a browser window. This gets us 80% of the features for a very little development cost but it's still worth looking at other options.

Replacing the browser with a stand-alone app with an embedded browser view give us more flexibility and the possibility to develop features custom tailored to plotting:

  • Natural export to different formats (i.e. PNG, PDF, HTML, JSON, ...) via File -> Save As... or a share button.

  • Plotly modebar that is normally part of the figure and looks like this:
    Modebar
    Can be moved to native toolbar similar to this:
    Toolbar

  • We could display a sidebar that shows the JSON representation of the Figure.

@vojtamolda vojtamolda added enhancement New feature or request help wanted Extra attention is needed labels Feb 7, 2020
@vojtamolda
Copy link
Owner Author

Here's a preliminary wireframe sketch (sorry, I'm not really good at this) that demonstrates the idea:

Wireframe

@vojtamolda vojtamolda changed the title Create a chart viewer app similar to Matplotlib Create a standalone chart viewer app Apr 5, 2020
@vojtamolda vojtamolda added this to the Ploly.swift 0.6.0 milestone Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant