Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vega/editor
Editor/IDE for Vega and Vega-Lite
https://github.com/vega/editor
hacktoberfest vega vega-lite visualization
Last synced: 4 days ago
JSON representation
Editor/IDE for Vega and Vega-Lite
- Host: GitHub
- URL: https://github.com/vega/editor
- Owner: vega
- License: bsd-3-clause
- Created: 2017-06-05T22:02:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T22:40:27.000Z (14 days ago)
- Last Synced: 2024-11-29T12:47:14.292Z (13 days ago)
- Topics: hacktoberfest, vega, vega-lite, visualization
- Language: TypeScript
- Homepage: https://vega.github.io/editor/
- Size: 207 MB
- Stars: 167
- Watchers: 21
- Forks: 92
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - vega/editor - Editor/IDE for Vega and Vega-Lite (hacktoberfest)
README
# Vega Editor [![Build Status](https://github.com/vega/editor/workflows/Test/badge.svg)](https://github.com/vega/editor/actions) [![Deploy to Pages](https://github.com/vega/editor/actions/workflows/publish.yml/badge.svg)](https://github.com/vega/editor/actions/workflows/publish.yml)
The **Vega editor** is a web application for authoring and testing [Vega](https://github.com/vega/vega) and [Vega-Lite](https://vega.github.io/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
### Run Vega-Editor With Docker
```bash
sudo docker run -it --rm -p 1234:1234 node:21 bash -xc 'mkdir -p vega/editor && git clone --depth=1 https://github.com/vega/editor.git vega/editor && cd vega/editor && npm install && npm start'
```### Development Setup
We assume you have [Node.js and npm](https://nodejs.org/), `bash`, `curl`, and `tar` installed.Your working copy of this git repository must be located at least two levels below the system root `/`.
E.g. `/home/user/editor` or `/vega/editor`, but not `/editor`.Inside your working copy ...
1. Install the dependencies:
`$ npm install`
* If you are running into issues with installing canvas, follow the [canvas installation guide](https://github.com/Automattic/node-canvas?tab=readme-ov-file#installation).2. Launch the local web server:
`$ npm start`3. The local web server will be accessible via [http://localhost:1234](http://localhost:1234).
## 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 `npm link` in the directory of the library that you want to link. Then, in this directory run `npm link `, e.g. `npm link vega` or `npm link vega-lite`.
For example, to link Vega, run
```bash
cd VEGA_DIR
npm linkcd VEGA_LITE_DIR
npm linkcd VEGA_EDITOR_DIR
npm link vega
npm link vega-lite
```The Vega editor supports [React Developer Tools](https://github.com/facebook/react-devtools) and [Redux DevTools](https://github.com/zalmoxisus/redux-devtools-extension).
## Building preview images
Build images with `npm run 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](https://github.com/vega/vega-lite/blob/master/CONTRIBUTING.md).
## Creating a release on gh-pages
Run the publish action at https://github.com/vega/editor/actions/workflows/publish.yml.