marimo icon indicating copy to clipboard operation
marimo copied to clipboard

mo.ui.data_voyager

Open mscolnick opened this issue 1 year ago • 2 comments

This adds mo.ui.data_voyager which is inspired by https://vega.github.io/voyager/.

It uses https://github.com/vega/compassql for chart recommendations and guides the user into exploring various charts and drilling down.

Screenshot 2024-01-16 at 10 03 03 AM Screenshot 2024-01-16 at 10 03 19 AM

I expect a fair amount of back-and-forth comments on the UI/UX. There are also some features not added, but can be added in this PR if preferred:

  • sorting
  • scale (e.g. log)
  • filtering a fields values
  • grouping/filtering the types of recommendations (qualitative, temporal)
  • stack offset for row/column encodings
  • suggesting flipping encoding. currently all suggested are additive and we don't suggest replacements.

Things to note:

  • we don't add all time fns, there are a lot. i am aiming to add the common ones
  • The license from https://github.com/vega/voyager will need to be attributed, but we don't bring this library as a dep. The code from there has been simplified and modified, but still asks that we include the License.

mscolnick avatar Jan 16 '24 15:01 mscolnick

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 8, 2024 8:02pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 8, 2024 8:02pm

vercel[bot] avatar Jan 16 '24 15:01 vercel[bot]

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (d527d69) 0.00% compared to head (3dfa1c4) 69.12%. Report is 2 commits behind head on main.

:exclamation: Current head 3dfa1c4 differs from pull request most recent head bfb58d6. Consider uploading reports for the commit bfb58d6 to get more accurate results

Files Patch % Lines
marimo/_plugins/ui/_impl/data_voyager.py 66.66% 4 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff            @@
##           main     #581       +/-   ##
=========================================
+ Coverage      0   69.12%   +69.12%     
=========================================
  Files         0      140      +140     
  Lines         0     7038     +7038     
  Branches      0     1417     +1417     
=========================================
+ Hits          0     4865     +4865     
- Misses        0     1923     +1923     
- Partials      0      250      +250     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 16 '24 15:01 codecov[bot]