{"id":13481265,"url":"https://github.com/vega/vega-lite-api","last_synced_at":"2025-04-05T10:10:24.966Z","repository":{"id":34309813,"uuid":"177215911","full_name":"vega/vega-lite-api","owner":"vega","description":"A JavaScript API for Vega-Lite.","archived":false,"fork":false,"pushed_at":"2023-05-08T06:57:09.000Z","size":1340,"stargazers_count":211,"open_issues_count":24,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T09:09:54.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://observablehq.com/@vega/vega-lite-api","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vega.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-22T22:16:49.000Z","updated_at":"2024-12-31T04:52:11.000Z","dependencies_parsed_at":"2024-06-18T15:29:41.511Z","dependency_job_id":"e298a4fc-5821-4a24-8651-6fcf97e6f3fb","html_url":"https://github.com/vega/vega-lite-api","commit_stats":{"total_commits":302,"total_committers":8,"mean_commits":37.75,"dds":0.4470198675496688,"last_synced_commit":"5340b334de85a08b3e63506aa239d359396744ef"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-lite-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-lite-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-lite-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-lite-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vega","download_url":"https://codeload.github.com/vega/vega-lite-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:00:50.302Z","updated_at":"2025-04-05T10:10:24.948Z","avatar_url":"https://github.com/vega.png","language":"JavaScript","readme":"# Vega-Lite API \u003ca href=\"https://vega.github.io/vega-lite/\"\u003e\u003cimg align=\"right\" src=\"https://github.com/vega/logos/blob/master/assets/VL_Color@64.png?raw=true\" height=\"38\" /\u003e\u003c/a\u003e\n\n[![npm version](https://img.shields.io/npm/v/vega-lite-api.svg)](https://www.npmjs.com/package/vega-lite-api)\n[![Build Status](https://github.com/vega/vega-lite-api/workflows/Test/badge.svg)](https://github.com/vega/vega-lite-api/actions)\n\n![Gallery Image](https://vega.github.io/vega-lite/static/teaser.png)\n\nA JavaScript API for creating Vega-Lite JSON specifications. [Vega-Lite](https://vega.github.io/vega-lite/) is a high-level grammar for visual analysis that generates complete [Vega](https://vega.github.io/) specifications.\n\nWith the Vega-Lite API, you can write JavaScript code like this:\n\n```js\nvl.markBar().data('data/movies.json').encode(\n  vl.x().fieldQ('IMDB_Rating').bin(true),\n  vl.y().count()\n)\n```\n\nTo produce Vega-Lite JSON like this:\n\n```json\n{\n  \"mark\": \"bar\",\n  \"data\": {\"url\": \"data/movies.json\"},\n  \"encoding\": {\n    \"x\": {\n      \"bin\": true,\n      \"field\": \"IMDB_Rating\",\n      \"type\": \"quantitative\"\n    },\n    \"y\": {\n      \"aggregate\": \"count\",\n      \"type\": \"quantitative\"\n    }\n  }\n}\n```\n\nTo get started with the Vega-Lite API, see these Observable notebooks:\n\n- [Introduction to Vega-Lite](https://observablehq.com/@uwdata/introduction-to-vega-lite)\n- [Vega-Lite API](https://observablehq.com/@vega/vega-lite-api-v5)\n- [Vega-Lite API Collection](https://observablehq.com/collection/@vega/vega-lite-api)\n\n## Build Instructions\n\nFor a basic setup allowing you to build the API and run tests:\n\n- Clone `https://github.com/vega/vega-lite-api`.\n- Run `yarn` to install dependencies for all packages. If you don't have yarn installed, see https://yarnpkg.com/en/docs/install.\n- Once installation is complete, run `yarn build` to build the API generator and generate API source code in the `src` directory. Run `yarn test` to additionally run the test suite.\n\n## API Reference\n\nSee the [Vega-Lite JavaScript API Reference](https://vega.github.io/vega-lite-api/api).\n","funding_links":[],"categories":["JavaScript","Charts"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvega%2Fvega-lite-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvega%2Fvega-lite-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvega%2Fvega-lite-api/lists"}