{"id":21229740,"url":"https://github.com/pansyjs/react-charts","last_synced_at":"2025-07-10T15:32:21.610Z","repository":{"id":56212316,"uuid":"253679980","full_name":"pansyjs/react-charts","owner":"pansyjs","description":"基于 G2Plot 的图表封装","archived":false,"fork":false,"pushed_at":"2023-12-15T05:30:09.000Z","size":567,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T06:37:44.717Z","etag":null,"topics":["chart","g2plot","react"],"latest_commit_sha":null,"homepage":"https://react-charts.now.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pansyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-07T03:43:09.000Z","updated_at":"2024-07-05T06:04:44.000Z","dependencies_parsed_at":"2022-08-15T14:50:13.794Z","dependency_job_id":null,"html_url":"https://github.com/pansyjs/react-charts","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Freact-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Freact-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Freact-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Freact-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pansyjs","download_url":"https://codeload.github.com/pansyjs/react-charts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225570434,"owners_count":17489885,"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":["chart","g2plot","react"],"created_at":"2024-11-20T23:29:14.083Z","updated_at":"2024-11-20T23:29:14.701Z","avatar_url":"https://github.com/pansyjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ereact-charts\u003c/h1\u003e\n\n\u003e 基于 [G2Plot](https://github.com/antvis/G2Plot) 封装的图表库\n\n## ✨ 特性\n\n- 💻 使用 TypeScript 构建，提供完整的类型定义文件\n\n## 🏗 安装\n\n```\n// npm 安装\nnpm install --save @pansy/react-charts\n\n// yarn 安装\nyarn add @pansy/react-charts\n```\n\n## 🔨 使用\n\n```\nimport React, { FC } from 'react';\nimport { Line } from '@pansy/react-charts';\n\nconst App: FC = () =\u003e {\n  const 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: 13 },\n  ];\n\n  const config = {\n    data,\n    xField: 'year',\n    title: {\n      visible: true,\n      text: '我是标题',\n    },\n  };\n\n  return (\n    \u003cLine {...config} /\u003e\n  );\n};\n\nexport default App;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpansyjs%2Freact-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpansyjs%2Freact-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpansyjs%2Freact-charts/lists"}