vojtamolda / Plotly.swift

Interactive data visualization library for Swift
https://vojtamolda.github.io/Plotly.swift/
MIT License
82 stars 8 forks source link

Create a standalone chart viewer app #7

Open vojtamolda opened 4 years ago

vojtamolda commented 4 years ago

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:

vojtamolda commented 4 years ago

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

Wireframe