GithubHelp home page GithubHelp logo

Chart suggestions about datasette-vega HOT 5 OPEN

simonw avatar simonw commented on June 17, 2024
Chart suggestions

from datasette-vega.

Comments (5)

simar7 avatar simar7 commented on June 17, 2024 2

Any update on this? Would be pretty cool to have it!

from datasette-vega.

simonw avatar simonw commented on June 17, 2024

To do this I think I'm going to change the properties of the <DatasetteVega ...> component.

It currently takes a base_url= property (with a URL to the .json version of a Datasette table or query) and an optional columns= property so that our tests don't fail trying to make a fetch() call.

Instead, I'm going to pass in the actual data= data array having fetched it already. The code that inserts <DatasetteVega ...> will be responsible for fetching the data first.

This means the columns logic and the suggestions logic can run entirely within the component based just on the passed in properties. It should also allow me to write unit tests for the component without needing to mock fetch() calls.

from datasette-vega.

simonw avatar simonw commented on June 17, 2024

Related note: I shouldn't render a graph at all unless both the x_column and y_column have been selected.

from datasette-vega.

mrchrisadams avatar mrchrisadams commented on June 17, 2024

If you're looking into this, it this paper here, on making suggested visualisations outlined in this paper here, might be of interest:

https://idl.cs.washington.edu/papers/compassql/

Creating effective visualizations requires domain familiarity as well as design and analysis expertise, and may impose a tedious specification process. To address these difficulties, many visualization tools complement manual specification with recommendations.

However, designing interfaces, ranking metrics, and scalable recommender systems remain important research challenges. In this paper, we propose a common framework for facilitating the development of visualization recommender systems in the form of a specification language for querying over the space of visualizations.

We present the preliminary design of CompassQL, which defines (1) a partial specification that describes enumeration constraints, and (2) methods for choosing, ranking, and grouping recommended visualizations. To demonstrate the expressivity of the language, we describe existing recommender systems in terms of CompassQL queries.

There's also a working version of it at.
http://vega.github.io/voyager/

If you take an csv export from say, here:

https://fivethirtyeight.datasettes.com/fivethirtyeight-440525b/nba-elo%2Fnbaallelo.csv?_size=max

And dump it in, and it automatically generates a load of different charts based on the dimensions in the data.

Then, if you then drag say , points (ptz) from the left, to the X axis slot, it then creates a load more viz, based on it. How cool?

This isn't a feature request, I was just playing with it when looking over datasette-vega, and figured it might be of interest 👍

from datasette-vega.

hydrosquall avatar hydrosquall commented on June 17, 2024

There's now a second, updated version of Voyager.

https://vega.github.io/voyager2/

Another useful project in the chart recommendation space is Lux, although it seems to require Jupyter to be active to be able to use it. I'll file an issue to see if there are recommendations about running Lux headlessly (without Jupyter active) as a standalone python process.

https://lux-api.readthedocs.io/en/latest/

from datasette-vega.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.