{"id":15369098,"url":"https://github.com/developit/precharts","last_synced_at":"2025-04-15T13:43:08.807Z","repository":{"id":57329663,"uuid":"68884951","full_name":"developit/precharts","owner":"developit","description":"Just Recharts pre-aliased for Preact.","archived":false,"fork":false,"pushed_at":"2018-01-06T07:06:13.000Z","size":37,"stargazers_count":29,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T11:16:10.929Z","etag":null,"topics":["preact","recharts"],"latest_commit_sha":null,"homepage":"https://npm.im/precharts","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/developit.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}},"created_at":"2016-09-22T04:35:57.000Z","updated_at":"2024-09-26T23:37:41.000Z","dependencies_parsed_at":"2022-09-16T18:00:55.084Z","dependency_job_id":null,"html_url":"https://github.com/developit/precharts","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fprecharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fprecharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fprecharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fprecharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/precharts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249081913,"owners_count":21209776,"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":["preact","recharts"],"created_at":"2024-10-01T13:34:09.130Z","updated_at":"2025-04-15T13:43:08.776Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"# Precharts\n\n[![NPM](http://img.shields.io/npm/v/precharts.svg)](https://www.npmjs.com/package/precharts)\n[![travis-ci](https://travis-ci.org/developit/precharts.svg)](https://travis-ci.org/developit/precharts)\n\nWraps [Recharts] up for [Preact], without using [preact-compat](https://github.com/developit/preact-compat).\n\n\u003e Think of this as a version of `Precharts` that is pre-aliased to use preact in place of React.\n\n**See [Webpackbin Example](https://www.webpackbin.com/bins/-L29GdZCQlStSHEgya-c):**\n\n[![demo](https://i.gyazo.com/9760d4a6d122902dcbd4a5252e745b47.gif)](https://www.webpackbin.com/bins/-L29GdZCQlStSHEgya-c)\n\n\n---\n\n\n### Usage Example\n\n\n```js\nimport { h, render } from 'preact';\nimport { ComposedChart, Area, Line, XAxis, CartesianGrid, Tooltip } from 'precharts';\n\nconst DATA = [\n\t{ name: 'A', a: 4000, b: 2400 },\n\t{ name: 'B', a: 3000, b: 1398 },\n\t{ name: 'C', a: 2000, b: 9800 },\n\t{ name: 'D', a: 2780, b: 3908 },\n\t{ name: 'E', a: 1890, b: 4800 },\n\t{ name: 'F', a: 2390, b: 3800 },\n\t{ name: 'G', a: 3490, b: 4300 }\n];\n\nrender((\n\t\u003cComposedChart width={500} height={200} data={DATA}\u003e\n\t\t\u003cXAxis dataKey=\"name\" orientation=\"bottom\" height={20} /\u003e\n\t\t\u003cCartesianGrid strokeDasharray=\"3 3\" /\u003e\n\t\t\u003cLine dataKey=\"a\" stroke=\"red\" /\u003e\n\t\t\u003cArea dataKey=\"b\" fill=\"green\" opacity={.3} /\u003e\n\t\t\u003cTooltip /\u003e\n\t\u003c/ComposedChart\u003e\n), document.body);\n```\n\n\n---\n\n\n### License\n\n[MIT]\n\n\n[recharts]: https://github.com/recharts/recharts\n[Preact]: https://github.com/developit/preact\n[MIT]: http://choosealicense.com/licenses/mit/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fprecharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fprecharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fprecharts/lists"}