{"id":20931911,"url":"https://github.com/shixiongfei/vega-plot","last_synced_at":"2025-04-05T19:44:33.699Z","repository":{"id":206452835,"uuid":"716625398","full_name":"shixiongfei/vega-plot","owner":"shixiongfei","description":"Display the vega-lite charts in the window.","archived":false,"fork":false,"pushed_at":"2024-08-13T15:55:29.000Z","size":502,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T21:38:49.890Z","etag":null,"topics":["charts","plot","vega","vega-lite"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vega-plot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shixiongfei.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":"2023-11-09T14:28:15.000Z","updated_at":"2024-08-13T15:55:17.000Z","dependencies_parsed_at":"2023-12-19T01:00:48.111Z","dependency_job_id":"e6edfdd4-a1d4-4e66-9d83-e6e3f9a4a0ec","html_url":"https://github.com/shixiongfei/vega-plot","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"746d0879b112d876435468a518dfe18deeef2e8f"},"previous_names":["shixiongfei/vega-plot"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shixiongfei%2Fvega-plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shixiongfei%2Fvega-plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shixiongfei%2Fvega-plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shixiongfei%2Fvega-plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shixiongfei","download_url":"https://codeload.github.com/shixiongfei/vega-plot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393540,"owners_count":20931810,"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":["charts","plot","vega","vega-lite"],"created_at":"2024-11-18T21:46:15.397Z","updated_at":"2025-04-05T19:44:33.678Z","avatar_url":"https://github.com/shixiongfei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vega-plot\n\n[![NPM Version](https://img.shields.io/npm/v/vega-plot)](https://www.npmjs.com/package/vega-plot)\n\nDisplay the vega-lite charts in the window.\n\n### Example\n\n```javascript\nimport { plot } from \"vega-plot\";\n\nplot({\n  $schema: \"https://vega.github.io/schema/vega-lite/v5.json\",\n  description: \"A simple bar chart with embedded data.\",\n  width: 400,\n  height: 300,\n  data: {\n    values: [\n      { a: \"A\", b: 28 },\n      { a: \"B\", b: 55 },\n      { a: \"C\", b: 43 },\n      { a: \"D\", b: 91 },\n      { a: \"E\", b: 81 },\n      { a: \"F\", b: 53 },\n      { a: \"G\", b: 19 },\n      { a: \"H\", b: 87 },\n      { a: \"I\", b: 52 },\n    ],\n  },\n  mark: \"bar\",\n  encoding: {\n    x: { field: \"a\", type: \"ordinal\" },\n    y: { field: \"b\", type: \"quantitative\" },\n    tooltip: [\n      { field: \"a\", type: \"ordinal\" },\n      { field: \"b\", type: \"quantitative\" },\n    ],\n  },\n});\n\nplot({\n  $schema: \"https://vega.github.io/schema/vega-lite/v5.json\",\n  description: \"Plots two functions using a generated sequence.\",\n  width: 300,\n  height: 150,\n  data: {\n    sequence: {\n      start: 0,\n      stop: 12.7,\n      step: 0.1,\n      as: \"x\",\n    },\n  },\n  transform: [\n    { calculate: \"sin(datum.x)\", as: \"sin(x)\" },\n    { calculate: \"cos(datum.x)\", as: \"cos(x)\" },\n    { fold: [\"sin(x)\", \"cos(x)\"] },\n  ],\n  mark: \"line\",\n  encoding: {\n    x: { type: \"quantitative\", field: \"x\" },\n    y: { field: \"value\", type: \"quantitative\" },\n    color: { field: \"key\", type: \"nominal\", title: null },\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshixiongfei%2Fvega-plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshixiongfei%2Fvega-plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshixiongfei%2Fvega-plot/lists"}