Git Product home page Git Product logo

editor's Introduction

Vega Editor Build Status Publish

The Vega editor is a web application for authoring and testing Vega and Vega-Lite visualizations. It includes a number of example specifications that showcase both the visual encodings and interaction techniques. It is deployed at https://vega.github.io/editor/.

We integrated a back-end service at https://vega-editor-backend.vercel.app/ which lets a user log in through GitHub so that they can access his/her personal gists. The code for the backend is at https://github.com/vega/editor-backend.

Editor is stuck

You can reset the Vega Editor by going to https://vega.github.io/editor/#/reset and clicking the reset button. This will reset the saved editor state.

Usage Instructions

To run the editor locally, you must first install the dependencies and then launch a local web server. We assume you have yarn installed.

  1. Install the dependencies:
$ yarn
  1. Start the server:
$ yarn start
  1. The local web server will be accessible from http://localhost:8080.

Docker

If you'd like to use Docker, there's a Docker Compose setup that you can use:

  1. Build the docker container:
$ docker-compose build
  1. Run the Docker Compose service:
$ docker-compose up
  1. The local web server will be accessible from http://localhost:8080. You can run yarn commands with docker-compose run editor CMD.

Local Testing & Debugging

The editor is useful for testing if you are involved in Vega and Vega-Lite development. To use Vega, Vega-Lite, or Vega Datasets from another directory on your computer, you need to link it. For this, run yarn link in the directory of the library that you want to link. Then, in this directory run yarn link <name of library>, e.g. yarn link vega or yarn link vega-lite.

For example, to link Vega, run

cd VEGA_DIR
yarn link

cd VEGA_LITE_DIR
yarn link

cd VEGA_EDITOR_DIR
yarn link vega
yarn link vega-lite

The Vega editor supports React Developer Tools and Redux DevTools.

Building preview images

Build images with yarn generate-example-images.

Contributing guidelines

We welcome contributions and promptly review pull requests. For instructions about how to contribute, please follow the Vega-Lite contributing guidelines.

Creating a release on gh-pages

Add all changes from master into the publish branch with the following commands:

git checkout master
git pull
git checkout publish
git merge master --ff-only
git push
git checkout master

You can preview the changes in this comparison. GitHub will automatically deploy the editor.

editor's People

Contributors

domoritz avatar dependabot-preview[bot] avatar mathisonian avatar ydlamba avatar dependabot[bot] avatar siddhant1 avatar arvind avatar algomaster99 avatar kanitw avatar jheer avatar starry97 avatar ganeshpatro321 avatar tianyiii avatar jhoffswell avatar greenkeeper[bot] avatar ashu8912 avatar donghaoren avatar russellsprouts avatar shakti97 avatar saurabh0402 avatar hungngo97 avatar rav1kantsingh avatar punitlodha avatar andrewshawcare avatar apollonian avatar arexjambusarwala avatar bryik avatar risinggeek avatar floribon avatar y-vectorfield avatar

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.