{"id":13394393,"url":"https://github.com/frappe/charts","last_synced_at":"2025-05-12T16:29:55.881Z","repository":{"id":37692304,"uuid":"108395495","full_name":"frappe/charts","owner":"frappe","description":"Simple, responsive, modern SVG Charts with zero dependencies","archived":false,"fork":false,"pushed_at":"2025-03-27T14:35:28.000Z","size":7007,"stargazers_count":15008,"open_issues_count":141,"forks_count":733,"subscribers_count":217,"default_branch":"master","last_synced_at":"2025-05-04T12:16:47.151Z","etag":null,"topics":["chart","graph","hacktoberfest","javascript","svg","svg-chart","zero-dependency"],"latest_commit_sha":null,"homepage":"https://frappe.io/charts/docs","language":"JavaScript","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/frappe.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,"zenodo":null}},"created_at":"2017-10-26T10:13:21.000Z","updated_at":"2025-05-03T17:40:58.000Z","dependencies_parsed_at":"2024-01-08T09:04:44.468Z","dependency_job_id":"2a55c156-b5c8-457c-97b8-9ee2d931c604","html_url":"https://github.com/frappe/charts","commit_stats":{"total_commits":416,"total_committers":54,"mean_commits":7.703703703703703,"dds":0.59375,"last_synced_commit":"8f69be05c10635d5726a1aa8843bcfed3c91a786"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frappe%2Fcharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frappe%2Fcharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frappe%2Fcharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frappe%2Fcharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frappe","download_url":"https://codeload.github.com/frappe/charts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252330748,"owners_count":21730696,"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","graph","hacktoberfest","javascript","svg","svg-chart","zero-dependency"],"created_at":"2024-07-30T17:01:17.944Z","updated_at":"2025-05-04T12:16:50.794Z","avatar_url":"https://github.com/frappe.png","language":"JavaScript","funding_links":[],"categories":["Data Visualization","JavaScript",":mortar_board: 搜罗一切酷酷的东西","HTML / CSS / SVG","Svg/Canvas","前端开发框架及项目","Data Visualization [🔝](#readme)","Visualization","Graphics","javascript","UI Components","Repository","数据可视化","hacktoberfest","JavaScript Libs","📊 Data \u0026 Analytics","JS/TS Utilities","Uncategorized"],"sub_categories":["Runner","其他_文本生成、文本对话","JavaScript Libraries","React Components","Charts and Graphs","Data Visualization","运行器","运行器e2e测试","Admin Template \u0026 Component Library","Uncategorized"],"readme":"\u003cdiv align=\"center\" markdown=\"1\"\u003e\n    \n\u003cimg width=\"80\" alt=\"charts-logo\" src=\"https://github.com/user-attachments/assets/37b7ffaf-8354-48f2-8b9c-fa04fae0135b\" /\u003e\n    \n# Frappe Charts\n**GitHub-inspired modern, intuitive and responsive charts with zero dependencies**\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://bundlephobia.com/result?p=frappe-charts\"\u003e\n        \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/frappe-charts\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cimg src=\".github/example.gif\"\u003e\n\n\u003cdiv\u003e\n\n[Explore Demos](https://frappe.io/charts) - [Edit at CodeSandbox](https://codesandbox.io/s/frappe-charts-demo-viqud) - [Documentation](https://frappe.io/charts/docs)  \n\n\u003c/div\u003e\n\n\u003c/div\u003e\n\n## Frappe Charts\nFrappe Charts is a simple charting library with a focus on a simple API. The design is inspired by various charts you see on GitHub.\n\n### Motivation\n\nERPNext needed a simple sales history graph for its user company master to help users track sales. While using c3.js for reports, the library didn’t align well with our product’s classic design. Existing JS libraries were either too complex or rigid in their structure and behavior. To address this, I decided to create a library for translating value pairs into relative shapes or positions, focusing on simplicity.\n\n### Key Features\n\n- **Variety of chart types**: Frappe Charts supports various chart types, including Axis Charts, Area and Trends, Bar, Line, Pie, Percentage, Mixed Axis, and Heatmap.\n- **Annotations and tooltips**: Charts can be annotated with x and y markers, regions, and tooltips for enhanced data context and clarity.\n- **Dynamic data handling**: Add, remove, or update individual data points in place, or refresh the entire dataset to reflect changes.\n- **Customizable configurations**: Flexible options like colors, animations, and custom titles allow for a highly personalized chart experience.\n\n## Usage\n\n```sh\nnpm install frappe-charts\n```\n\nImport in your project:\n```js\nimport { Chart } from 'frappe-charts'\n// or esm import\nimport { Chart } from 'frappe-charts/dist/frappe-charts.esm.js'\n// import css\nimport 'frappe-charts/dist/frappe-charts.min.css'\n```\n\nOr directly include script in your HTML\n\n```html\n\u003cscript src=\"https://unpkg.com/frappe-charts@1.6.1/dist/frappe-charts.min.umd.js\"\u003e\u003c/script\u003e\n```\n\n\n```js\nconst data = {\n    labels: [\"12am-3am\", \"3am-6pm\", \"6am-9am\", \"9am-12am\",\n        \"12pm-3pm\", \"3pm-6pm\", \"6pm-9pm\", \"9am-12am\"\n    ],\n    datasets: [\n        {\n            name: \"Some Data\", chartType: \"bar\",\n            values: [25, 40, 30, 35, 8, 52, 17, -4]\n        },\n        {\n            name: \"Another Set\", chartType: \"line\",\n            values: [25, 50, -10, 15, 18, 32, 27, 14]\n        }\n    ]\n}\n\nconst chart = new frappe.Chart(\"#chart\", {  // or a DOM element,\n                                            // new Chart() in case of ES6 module with above usage\n    title: \"My Awesome Chart\",\n    data: data,\n    type: 'axis-mixed', // or 'bar', 'line', 'scatter', 'pie', 'percentage'\n    height: 250,\n    colors: ['#7cd6fd', '#743ee2']\n})\n```\n\n## Contributing\n\n1. Clone this repo.\n2. `cd` into project directory\n3. `npm install`\n4. `npm i npm-run-all -D` (*optional --\u003e might be required for some developers*)\n5. `npm run dev`\n\n## Links\n\n- [Read the blog](https://medium.com/@pratu16x7/so-we-decided-to-create-our-own-charts-a95cb5032c97)\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\t\u003ca href=\"https://frappe.io\" target=\"_blank\"\u003e\n\t\t\u003cpicture\u003e\n\t\t\t\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://frappe.io/files/Frappe-white.png\"\u003e\n\t\t\t\u003cimg src=\"https://frappe.io/files/Frappe-black.png\" alt=\"Frappe Technologies\" height=\"28\"/\u003e\n\t\t\u003c/picture\u003e\n\t\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrappe%2Fcharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrappe%2Fcharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrappe%2Fcharts/lists"}