Git Product home page Git Product logo

mcnuttandrew / no-grammar-supplement Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 14.21 MB

The supplementary material for the paper "No Grammar to Rule Them All: A Survey of Json-Style DSLs for Visualization"

Home Page: https://vis-json-dsls.netlify.app/

License: Other

JavaScript 75.42% TypeScript 22.21% HTML 0.01% Python 0.26% CSS 0.05% Svelte 1.34% XSLT 0.28% Shell 0.01% Jupyter Notebook 0.41%
dsl json visualization-grammar

no-grammar-supplement's Introduction

No Grammar Supplementary Materials

This repo contains of the supplementary materials for the paper "No Grammar To Rule Them All: A Survey of JSON-Style DSLs for Visualization" by Andrew McNutt. Specifically it consists of

  • a repository of example programs for each of the surveyed languages (code-examples/). (Nb: this contains a number of languages which were at some point included in our survey, such as tracery, which were eventually ruled to be excluded by our survey criterion.)
  • an interactive website for exploring those samples and our associated analysis as well as several charts (src/)
  • a notebook for constructing the "family tree" figure from the paper (analysis-nbs/analysis.ipynb)
  • a list of relationships between languages in the survey (analysis-nbs/relationships.tsv)
  • a table showing our analysis for each of the languages (public/lang-meta.tsv)

The interactive website is made available at https://vis-json-dsls.netlify.app/

Local instructions

While it is much easier to simply view these materials at the link provided above, if you wish to run them locally you can do so by running the following commands in the terminal

yarn
npx ts-node scripts/build-bundle.js
yarn dev

And then pointing a browser to http://localhost:5000/ (or whatever port is described as being opened in the CLI messages). This requires that node/yarn be already installed. See the node website and yarn website respectively for installation instructions.

If you wish to run the analysis notebook, run the following terminal commands

mkdir venv
python3 -m venv venv
source venv/bin/activate
pip3 install -r py-requires.txt

And then open a notebook as normal by running jupyter notebook in the terminal. Finally navigate to the analysis notebook (/notebooks/analysis-nbs/analysis.ipynb) through jupyter's browser. In development of that notebook the vscode version of notebooks was used, however it should be appropriately supported using any Jupyter notebook container. (The slightly unusual name for the requirements file is to prevent netlify from installing python requirements).

Finally, we have provided a script to reproduce one of the figures in the paper (namely Figure 3, which shows the analysis of each language across a variety of categories). This can be run via

sh scripts/build-table.sh

This script installs the dependencies, spins up a dev server, and then opens a puppeteer instance to save the image created on the web page. If you like, you can skip these steps and view this figure directly at https://vis-json-dsls.netlify.app/#/summary-table

no-grammar-supplement's People

Contributors

hydrosquall avatar mcnuttandrew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hydrosquall

no-grammar-supplement's Issues

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.