{"id":18623946,"url":"https://github.com/lloydzhou/g2x","last_synced_at":"2026-01-21T18:37:25.140Z","repository":{"id":185039320,"uuid":"640913581","full_name":"lloydzhou/g2x","owner":"lloydzhou","description":"React component wrapper for @antv/g2","archived":false,"fork":false,"pushed_at":"2023-11-15T16:10:09.000Z","size":399,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T18:02:59.364Z","etag":null,"topics":["antv","component","g2","g2plot","g2x","react","typescript"],"latest_commit_sha":null,"homepage":"https://lloydzhou.github.io/g2x/","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/lloydzhou.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-05-15T11:45:51.000Z","updated_at":"2023-11-30T07:21:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"79947b2a-cdbd-41eb-baf1-4eac7290734c","html_url":"https://github.com/lloydzhou/g2x","commit_stats":null,"previous_names":["lloydzhou/antv-g2-react","lloydzhou/g2x"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lloydzhou/g2x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydzhou%2Fg2x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydzhou%2Fg2x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydzhou%2Fg2x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydzhou%2Fg2x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lloydzhou","download_url":"https://codeload.github.com/lloydzhou/g2x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydzhou%2Fg2x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28639413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","component","g2","g2plot","g2x","react","typescript"],"created_at":"2024-11-07T04:26:47.846Z","updated_at":"2026-01-21T18:37:25.121Z","avatar_url":"https://github.com/lloydzhou.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# g2x\n\nReact component wrapper for [@antv/g2](https://github.com/antvis/g2).  \n\n\u003ca href=\"https://www.npmjs.com/package/g2x\"\u003e\u003cimg alt=\"NPM Package\" src=\"https://img.shields.io/npm/v/g2x.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/g2x\"\u003e\u003cimg src=\"https://img.shields.io/bundlejs/size/g2x\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/g2x\"\u003e\u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/g2x?logo=npm\u0026style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/lloydzhou/g2x?style=flat-square\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\n\n## demo\n```\nfunction App() {\n\n  return (\n    \u003c\u003e\n      \u003cChart width={640} height={480} onBeforeRender={e =\u003e console.log('before render', e)} onElementClick={e =\u003e console.log('element click',e)} onIntervalClick={e =\u003e console.log('Interval click', e)} onAfterChangeData={e =\u003e console.log('before change data', e)}\u003e\n        \u003cSpaceLayer\u003e\n          \u003cFetchData value=\"https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv\" format=\"csv\" /\u003e\n          \u003cInterval\u003e\n            \u003cTitle title=\"test title\" align=\"center\" /\u003e\n            \u003cEncode name=\"x\" value=\"letter\" /\u003e\n            \u003cEncode name=\"y\" value=\"frequency\" /\u003e\n            \u003cFieldEncode name=\"color\" value=\"letter\" /\u003e\n            \u003cSortX reverse={true} by=\"y\" /\u003e\n          \u003c/Interval\u003e\n          \u003cInterval x={300} y={65} width={300} height={300} legend={false}\u003e\n            \u003cFieldEncode name=\"y\" value=\"frequency\" /\u003e\n            \u003cEncode name=\"color\" value=\"letter\" /\u003e\n            \u003cStackY /\u003e\n            \u003cThetaCoordinate /\u003e\n          \u003c/Interval\u003e\n        \u003c/SpaceLayer\u003e\n      \u003c/Chart\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n![image](https://github.com/lloydzhou/antv-g2-react/assets/1826685/759ca66d-6d1b-428b-a651-172db3147dbb)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydzhou%2Fg2x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flloydzhou%2Fg2x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydzhou%2Fg2x/lists"}