Coder Social home page Coder Social logo

sanjaykairam / vega-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vega/vega-lite

0.0 1.0 0.0 13.99 MB

A high-level grammar for visual analysis, built on top of Vega.

Home Page: http://vega.github.io/vega-lite/

License: Other

Ruby 0.02% HTML 2.33% JavaScript 2.20% Shell 1.80% CSS 1.08% TypeScript 92.57%

vega-lite's Introduction

Vega-Lite

Build Status npm dependencies npm version

Vega-Lite provides a higher-level grammar for visual analysis, akin to ggplot or Tableau, that generates complete Vega specifications.

Vega-Lite specifications consist of simple mappings of variables in a data set to visual encoding channels such as position (x,y), size, color and shape. These mappings are then translated into detailed visualization specifications in the form of Vega specification language. Vega-Lite produces default values for visualization components (e.g., scales, axes, and legends) in the output Vega specification using a rule-based approach, but users can explicit specify these properties to override default values.

Try using Vega-Lite in the online Vega Editor.

The language and API are described in the documentation. The complete schema for specifications as JSON schema is at vega-lite-schema.json.

Feel free to ask questions about Vega-Lite in the Vega Discussion Group / Mailing List.

Contributions are also welcomed. Please refer to CONTRIBUTING.md for contribution and development guidelines.

Example specification: A simple bar chart

This is a similar chart as one of the Vega examples in https://github.com/vega/vega/wiki/Tutorial. See how much simpler it is.

{
  "data": {
    "values": [
      {"a":"A", "b":28}, {"a":"B", "b":55}, {"a":"C", "b":43},
      {"a":"D", "b":91}, {"a":"E", "b":81}, {"a":"F", "b":53},
      {"a":"G", "b":19}, {"a":"H", "b":87}, {"a":"I", "b":52}
    ]
  },
  "mark": "bar",
  "encoding": {
    "x": {"type": "ordinal", "field": "a"},
    "y": {"type": "quantitative", "field": "b"}
  }
}

We have more example visualizations in our gallery, the documentation, and the online editor.

vega-lite's People

Contributors

arvind avatar bobocandys avatar domoritz avatar jheer avatar jpocom avatar kadamwhite avatar kanitw avatar marcprux avatar osnr avatar vivekratnavel avatar willium avatar

Watchers

 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.