Giter VIP home page Giter VIP logo

lyra's Introduction

Vega: A Visualization Grammar

Vega Examples

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. With Vega you can describe data visualizations in a JSON format, and generate interactive views using either HTML5 Canvas or SVG.

For documentation, tutorials, and examples, see the Vega website. For a description of changes between Vega 2 and later versions, please refer to the Vega Porting Guide.

Build Instructions

For a basic setup allowing you to build Vega and run examples:

  • Clone https://github.com/vega/vega.
  • Run yarn to install dependencies for all packages. If you don't have yarn installed, see https://yarnpkg.com/en/docs/install. We use Yarn workspaces to manage multiple packages within this monorepo.
  • Once installation is complete, run yarn test to run test cases, or run yarn build to build output files for all packages.
  • After running either yarn test or yarn build, run yarn serve to launch a local web server — your default browser will open and you can browse to the "test" folder to view test specifications.

This repository includes the Vega website and documentation in the docs folder. To launch the website locally, first run bundle install in the docs folder to install the necessary Jekyll libraries. Afterwards, use yarn docs to build the documentation and launch a local webserver. After launching, you can open http://127.0.0.1:4000/vega/ to see the website.

Internet Explorer Support

For backwards compatibility, Vega includes a babel-ified IE-compatible version of the code in the packages/vega/build-es5 directory. Older browser would also require several polyfill libraries:

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/runtime.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch.umd.min.js"></script>

Contributions, Development, and Support

Interested in contributing to Vega? Please see our contribution and development guidelines, subject to our code of conduct.

Looking for support, or interested in sharing examples and tips? Post to the Vega discussion forum or join the Vega slack organization! We also have examples available as Observable notebooks.

If you're curious about system performance, see some in-browser benchmarks. Read about future plans in our roadmap.

lyra's People

Contributors

alundgard avatar anjirhossain avatar arvind avatar deathbearbrown avatar dependabot[bot] avatar djbarnwal avatar domoritz avatar jaericson avatar jonathanzong avatar kadamwhite avatar kanitw avatar ktbacher avatar liangkaiwen avatar mattwchun avatar nanakwame avatar russellsprouts avatar signalwerk avatar thomasg77 avatar waldyrious avatar waxlamp avatar websiddu avatar wmcgrath avatar yiyangxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lyra's Issues

Add offset second mark added

lyra-15

I added text first and then I drag second text into the canvas. Should it be offset from the first one to aid selection?

Map ‘key' to text marks show “undefined"

I’m not sure if this is a bug or my misunderstanding.

With rundown dataset, I facet data by title.
Then I add a text mark and drag title to its text value.
Somehow it only shows “undefined”.

If I drag title to the text, it works just fine.
lyra

Replay constructing a visualization

Once we have the ability to reimport Lyra states, it should be fairly trivial to save an array of states and then "replay" them. It's a story!

I don't think we need to spend any time on the UI for building out these stories, but there are definitely UI considerations for playing the stories back.

Create unit tests

Put this off as long as possible. But adding features for #17 introduced a number of show-stopping regressions. This is not good.

Group injection should actually inject group into app

To make clearer what group injection is doing, have it add a group mark under the current layer, rather than doing everything through callbacks. We'll likely want to make this group mark more constrained (e.g. not being able to change the pipeline, or apply a visual transformation?).

Standardize "hide"

To hide things, sometimes you set width to 0, sometimes you check a box, sometimes you set colours to white. Standardize this.

Uncaught Type Error when clicking undo

Uncaught TypeError: Cannot read property 'type' of undefined vega-1.3.3.js:5432
axis_def vega-1.3.3.js:5432
axis.def vega-1.3.3.js:5404
(anonymous function) vega-1.3.3.js:5212
encodeGroup vega-1.3.3.js:5211
encode vega-1.3.3.js:5177
encodeGroup vega-1.3.3.js:5221
encode vega-1.3.3.js:5177
encodeGroup vega-1.3.3.js:5221
encode vega-1.3.3.js:5177
main vega-1.3.3.js:5155
vg.Model.prototype.encode vega-1.3.3.js:6429
vg.View.prototype.update vega-1.3.3.js:6647
(anonymous function) Vis.js:104
(anonymous function) vega-1.3.3.js:4643

I was changing many item on the screen and I made a mistake and click undo. Then all my work disappears and Uncaught TypeError is shown in the console.

If I encounter this again, I will provide more steps about what I did.

Stylesheet/UI review

  • Use SASS/LESS
  • Tighten property inspectors
  • Fix "accordion" of marks. Perhaps animation? Or split tree listing + properties inspector?

Toggle pipeline items

Right now, you can only delete items in the pipeline. You should be able to toggle them to temporarily disable them.

undefined error when dragging rectangle

TypeError: Cannot call method 'indexOf' of undefined
    at https://courses.cs.washington.edu/courses/cse512/14wi/vde/src/js/vis/marks/Rect.js:134:27
    at Object.Scope.$eval (https://courses.cs.washington.edu/courses/cse512/14wi/vde/src/js/lib/angular-1.1.5.js:8926:28)
    at Object.Scope.$apply (https://courses.cs.washington.edu/courses/cse512/14wi/vde/src/js/lib/angular-1.1.5.js:9006:23)
    at Object.mousemove (https://courses.cs.washington.edu/courses/cse512/14wi/vde/src/js/vis/marks/Rect.js:133:26)
    at HTMLCanvasElement.<anonymous> (https://courses.cs.washington.edu/courses/cse512/14wi/vde/src/js/vis/iVis.js:110:64)
    at HTMLCanvasElement.__onmousemove (https://courses.cs.washington.edu/courses/cse512/14wi/vde/src/js/lib/d3.v3.min.js:1:4531) angular-1.1.5.js:6349

I drag rectangle, hoping to move it then I see these in my console.

Need a way to hide axis properties pane.

lyra-5

In this screenshot, we can click on “Key”, “Medal Type”, or “Count" to show properties panel for each axis but there is no way to minimize the panel yet. This can be annoying for small screens.

Maybe there should be a minimize button or we just make the axes title act as show/hide toggle button.

Datatable doesn't support GeoJSON

Perhaps we want to rewrite the data table using our own library since we're really pushing dataTables beyond what it was meant to be doing.

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.