{"id":13495380,"url":"https://github.com/beizhedenglong/rough-charts","last_synced_at":"2025-04-08T09:07:02.760Z","repository":{"id":42163979,"uuid":"212741371","full_name":"beizhedenglong/rough-charts","owner":"beizhedenglong","description":"📈 A responsive, composable react charting library with a hand-drawn style.","archived":false,"fork":false,"pushed_at":"2020-11-03T17:52:46.000Z","size":5923,"stargazers_count":1543,"open_issues_count":1,"forks_count":56,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-01T08:34:39.371Z","etag":null,"topics":["data-visualization","drawing","hand-drawn","react-components","rough-charts"],"latest_commit_sha":null,"homepage":"https://beizhedenglong.github.io/rough-charts/?path=/docs/roughcharts--page","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/beizhedenglong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["beizhedenglong"]}},"created_at":"2019-10-04T05:19:54.000Z","updated_at":"2025-03-27T03:44:17.000Z","dependencies_parsed_at":"2022-09-26T17:01:15.895Z","dependency_job_id":null,"html_url":"https://github.com/beizhedenglong/rough-charts","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beizhedenglong%2Frough-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beizhedenglong%2Frough-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beizhedenglong%2Frough-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beizhedenglong%2Frough-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beizhedenglong","download_url":"https://codeload.github.com/beizhedenglong/rough-charts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809964,"owners_count":20999816,"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":["data-visualization","drawing","hand-drawn","react-components","rough-charts"],"created_at":"2024-07-31T19:01:34.113Z","updated_at":"2025-04-08T09:07:02.713Z","avatar_url":"https://github.com/beizhedenglong.png","language":"TypeScript","funding_links":["https://github.com/sponsors/beizhedenglong"],"categories":["TypeScript","前端/博客"],"sub_categories":["前端库"],"readme":"# Rough Charts \u0026middot; [![license](https://img.shields.io/github/license/beizhedenglong/rough-charts)](https://github.com/beizhedenglong/rough-charts/blob/master/LICENSE) ![build status](https://github.com/beizhedenglong/rough-charts/workflows/Node%20CI/badge.svg)\n**A responsive, composable react charting library with a hand-drawn style.**\n[**`See Examples From StoryBooks.`**](https://beizhedenglong.github.io/rough-charts/?path=/docs/roughcharts--page)\n\n## Overview\n\u003cdiv align=\"center\"\u003e\n  \u003cimage src=\"./img/screenshot2.png\" height=\"500\"\u003e\n  \u003cimage src=\"./img/screenshot1.png\" height=\"500\"\u003e\n\u003c/div\u003e\n\n## Features\n\n- **It's responsive.**\n- **It's flexible and easy to compose.** You can compose all available ChartSeries Components and render any shapes you like.\n- **It's lovely.**\n- **It's written in TypeScript.**\n\n\n## Installation\n\n```\n# NPM\nnpm install rough-charts\n\n# Yarn \nyarn add rough-charts\n```\n\u003e **This project contains a package called [`react-roughjs`](https://github.com/beizhedenglong/rough-charts/tree/master/packages/react-roughjs). It has a lot of basic rough shapes, you may need it.**\n\n## Usage \n\n```js\nimport * as React from 'react'\nimport {\n  LineSeries, Tooltip,\n  ChartProvider, XAxis, YAxis,\n} from 'rough-charts'\nimport { colors } from './colors'\n\nconst data = [\n  { name: 'A', value1: 30, value2: 35 },\n  { name: 'B', value1: 90, value2: 17 },\n  { name: 'C', value1: 50, value2: 23 },\n  { name: 'D', value1: 40, value2: 15 },\n  { name: 'E', value1: 70, value2: 39 },\n  { name: 'G', value1: 30, value2: 25 },\n  { name: 'H', value1: 100, value2: 31 },\n  { name: 'I', value1: 110, value2: 32 },\n]\n\nconst App = props =\u003e (\n  \u003cChartProvider\n    height={400}\n    data={data}\n  \u003e\n    \u003cXAxis dataKey=\"name\" /\u003e\n    \u003cYAxis /\u003e\n    \u003cLineSeries\n      dataKey=\"value1\"\n      options={{\n        stroke: colors[0],\n        strokeWidth: 2,\n      }}\n    /\u003e\n    \u003cLineSeries\n      dataKey=\"value2\"\n      options={{\n        stroke: colors[3],\n        strokeWidth: 2,\n      }}\n    /\u003e\n    \u003cTooltip /\u003e\n  \u003c/ChartProvider\u003e\n)\n\n```\n\n## Fonts\nAdd your favorite hand-drawn style fonts:\n\n```html\n\u003clink href=\"https://fonts.googleapis.com/css?family=Patrick+Hand\u0026display=swap\" rel=\"stylesheet\"\u003e\n\u003cstyle\u003e\n  * {\n    font-family: 'Patrick Hand', cursive;\n    font-size: 16px;\n  }\n\u003c/style\u003e\n```\n\n## Credits\nThis project was built on top of [`d3`](https://github.com/d3) and [`roughjs`](https://github.com/pshihn/rough).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeizhedenglong%2Frough-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeizhedenglong%2Frough-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeizhedenglong%2Frough-charts/lists"}