{"id":19139690,"url":"https://github.com/open-data-plan/g2plot-vue","last_synced_at":"2025-10-09T03:40:14.141Z","repository":{"id":37093625,"uuid":"285495277","full_name":"open-data-plan/g2plot-vue","owner":"open-data-plan","description":"g2plot for vue","archived":false,"fork":false,"pushed_at":"2025-09-29T19:57:33.000Z","size":34747,"stargazers_count":139,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-29T21:12:14.000Z","etag":null,"topics":["antv","g2","g2plot","g2plot-vue","vue","vue3"],"latest_commit_sha":null,"homepage":"https://g2plot-vue.opd.cool/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-data-plan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-06T06:46:36.000Z","updated_at":"2025-09-29T19:57:36.000Z","dependencies_parsed_at":"2023-12-29T12:22:59.638Z","dependency_job_id":"3507d578-d96e-4375-a08f-f39f96ed4c62","html_url":"https://github.com/open-data-plan/g2plot-vue","commit_stats":{"total_commits":1077,"total_committers":6,"mean_commits":179.5,"dds":"0.30640668523676884","last_synced_commit":"0ecbcdc890c7a5f84acc16ca6e65b8a270499e64"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/open-data-plan/g2plot-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fg2plot-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fg2plot-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fg2plot-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fg2plot-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-data-plan","download_url":"https://codeload.github.com/open-data-plan/g2plot-vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fg2plot-vue/sbom","scorecard":{"id":708292,"data":{"date":"2025-08-11","repo":{"name":"github.com/open-data-plan/g2plot-vue","commit":"9ebc3a4c736a4eab76f89b59d5a388e30b410340"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.9,"checks":[{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/auto-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/automerge.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/automerge.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-github-packages.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/npm-publish-github-packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-github-packages.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/npm-publish-github-packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-github-packages.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/npm-publish-github-packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-github-packages.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/open-data-plan/g2plot-vue/npm-publish-github-packages.yml/master?enable=pin","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'contents' permission set to 'read': .github/workflows/npm-publish-github-packages.yml:23","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/npm-publish-github-packages.yml:24","Warn: no topLevel permission defined: .github/workflows/auto-release.yml:1","Warn: no topLevel permission defined: .github/workflows/automerge.yml:1","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish-github-packages.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 29 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T07:23:48.868Z","repository_id":37093625,"created_at":"2025-08-22T07:23:48.868Z","updated_at":"2025-08-22T07:23:48.868Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000714,"owners_count":26082911,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["antv","g2","g2plot","g2plot-vue","vue","vue3"],"created_at":"2024-11-09T07:14:45.551Z","updated_at":"2025-10-09T03:40:14.112Z","avatar_url":"https://github.com/open-data-plan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/logo.svg\"\u003e\n\u003c/p\u003e\n\n# @opd/g2plot-vue\n\n\u003e [G2Plot](https://g2plot.antv.vision/) for `Vue`, see [documentation](https://g2plot-vue.opd.cool) for more\n\n[![build](https://github.com/open-data-plan/g2plot-vue/workflows/build/badge.svg)](https://github.com/open-data-plan/g2plot-vue/actions?query=workflow%3Abuild)\n[![npm](https://img.shields.io/npm/v/@opd/g2plot-vue.svg)](https://www.npmjs.com/package/@opd/g2plot-vue)\n[![npm](https://img.shields.io/npm/dm/@opd/g2plot-vue.svg)](https://www.npmjs.com/package/@opd/g2plot-vue)\n[![npm](https://img.shields.io/npm/l/@opd/g2plot-vue.svg)](https://www.npmjs.com/package/@opd/g2plot-vue)\n[![codecov](https://codecov.io/gh/open-data-plan/g2plot-vue/branch/master/graph/badge.svg)](https://codecov.io/gh/open-data-plan/g2plot-vue)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopen-data-plan%2Fg2plot-vue.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopen-data-plan%2Fg2plot-vue?ref=badge_shield)\n\n## Install\n\n```\nnpm install @opd/g2plot-vue\n```\n\n## Usage\n\n[![Edit g2plot-vue-basic-example](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/g2plot-vue-basic-example-uxde9?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n### jsx\n\n```tsx\nimport { defineComponent, ref } from 'vue'\nimport { LineChart, LineChartProps } from '@opd/g2plot-vue'\n\nconst config: LineChartProps = {\n  height: 350,\n  autoFit: true,\n  xField: 'year',\n  yField: 'value',\n  smooth: true,\n  meta: {\n    value: {\n      max: 15,\n    },\n  },\n  data: [\n    { year: '1991', value: 3 },\n    { year: '1992', value: 4 },\n    { year: '1993', value: 3.5 },\n    { year: '1994', value: 5 },\n    { year: '1995', value: 4.9 },\n    { year: '1996', value: 6 },\n    { year: '1997', value: 7 },\n    { year: '1998', value: 9 },\n    { year: '1999', value: 11 },\n  ],\n}\n\nexport default defineComponent(() =\u003e {\n  const chartRef = ref(null)\n  return () =\u003e \u003cLineChart {...config} chartRef={chartRef} /\u003e\n})\n```\n\n### template\n\n```vue\n\u003ctemplate\u003e\n  \u003cline-chart v-bind=\"config\" /\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nimport Vue from 'vue'\nimport { LineChart } from '@opd/g2plot-vue'\n\nVue.use(LineChart)\n\nexport default {\n  data() {\n    return {\n      config: {\n        height: 350,\n        autoFit: true,\n        xField: 'year',\n        yField: 'value',\n        smooth: true,\n        meta: {\n          value: {\n            max: 15,\n          },\n        },\n        data: [\n          { year: '1991', value: 3 },\n          { year: '1992', value: 4 },\n          { year: '1993', value: 3.5 },\n          { year: '1994', value: 5 },\n          { year: '1995', value: 4.9 },\n          { year: '1996', value: 6 },\n          { year: '1997', value: 7 },\n          { year: '1998', value: 9 },\n          { year: '1999', value: 11 },\n        ],\n      },\n    }\n  },\n}\n\u003c/script\u003e\n```\n\n## DEMO\n\n- Vue 3\n  - [github](https://github.com/open-data-plan/g2plot-vue-demo)\n  - [online](http://g2plot-vue-demo-opd.vercel.app/)\n\n## API\n\nAll config defined in `G2Plot` [document](https://g2plot.antv.vision/zh/docs/manual/introduction) can be used as `props` or `attrs`\n\nNotable API in `g2plot-vue`\n\n- `chartRef`: `ref` of rendered `plot`, available after `plot` mounted, **NOT** component mounted\n- `onReady`: `callback` after `plot` mounted, **NOT** component mounted\n\n## FYI\n\n- [Build failed with `vite`](https://github.com/open-data-plan/g2plot-vue/issues/505)\n\n  `g2plot-vue` use `babel` to build output files, and transform `@babel/runtime` with dependencies, so `@babel/runtime` is required.\n\n## Develop\n\n```\nnpm install\nnpm run build\n```\n\n## License\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopen-data-plan%2Fg2plot-vue.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopen-data-plan%2Fg2plot-vue?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-data-plan%2Fg2plot-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-data-plan%2Fg2plot-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-data-plan%2Fg2plot-vue/lists"}