{"id":15760624,"url":"https://github.com/zakodium-oss/react-plot","last_synced_at":"2025-08-21T15:31:54.197Z","repository":{"id":37700297,"uuid":"305640716","full_name":"zakodium-oss/react-plot","owner":"zakodium-oss","description":"Library of React components to render SVG 2D plots. You can check the story book https://react-plot.pages.dev/ or have a look to the extensive documentation","archived":false,"fork":false,"pushed_at":"2024-10-15T15:45:33.000Z","size":12939,"stargazers_count":12,"open_issues_count":32,"forks_count":6,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-12-10T08:51:25.205Z","etag":null,"topics":["charting-library","d3","hacktoberfest","plot","react","scientific-visualization"],"latest_commit_sha":null,"homepage":"https://react-plot.zakodium.com","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/zakodium-oss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-10-20T08:29:00.000Z","updated_at":"2024-10-15T15:45:37.000Z","dependencies_parsed_at":"2024-06-18T20:07:07.098Z","dependency_job_id":"3db602fc-b28a-40f2-9f63-ac8ac53b5c53","html_url":"https://github.com/zakodium-oss/react-plot","commit_stats":{"total_commits":373,"total_committers":12,"mean_commits":"31.083333333333332","dds":0.6487935656836461,"last_synced_commit":"2ba2db9d5cfd8a98456f2dbc9a34cacf7a749746"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakodium-oss%2Freact-plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakodium-oss%2Freact-plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakodium-oss%2Freact-plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakodium-oss%2Freact-plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zakodium-oss","download_url":"https://codeload.github.com/zakodium-oss/react-plot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520390,"owners_count":18238948,"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":["charting-library","d3","hacktoberfest","plot","react","scientific-visualization"],"created_at":"2024-10-04T10:59:18.020Z","updated_at":"2025-08-21T15:31:54.185Z","avatar_url":"https://github.com/zakodium-oss.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n  \u003ca href=\"https://www.zakodium.com\"\u003e\n    \u003cimg src=\"https://www.zakodium.com/brand/zakodium-logo-white.svg\" width=\"50\" alt=\"Zakodium logo\" /\u003e\n  \u003c/a\u003e\n  \u003cp\u003e\n    Maintained by \u003ca href=\"https://www.zakodium.com\"\u003eZakodium\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/h3\u003e\n\n# react-plot\n\n[![NPM version](https://img.shields.io/npm/v/react-plot.svg)](https://www.npmjs.com/package/react-plot)\n[![npm download](https://img.shields.io/npm/dm/react-plot.svg)](https://www.npmjs.com/package/react-plot)\n[![license](https://img.shields.io/npm/l/react-plot.svg)](https://github.com/zakodium-oss/react-plot/blob/main/LICENSE)\n\nLibrary of React components to render SVG 2D plots.\n\nCheck our exhaustive [documentation here](https://react-plot.zakodium.com/).\n\n## [Storybook](https://react-plot.pages.dev/)\n\n```tsx\nconst Example = () =\u003e (\n  \u003cPlot\n    width={550}\n    height={500}\n    margin={{ bottom: 50, left: 90, top: 50, right: 100 }}\n  \u003e\n    \u003cHeading\n      title=\"Electrical characterization\"\n      subtitle=\"current vs voltage\"\n    /\u003e\n    \u003cLineSeries\n      data={[\n        { x: 0, y: 0 },\n        { x: 1, y: 1 },\n        { x: 2, y: 2 },\n        { x: 3, y: 3 },\n        { x: 4, y: 3 },\n        { x: 5, y: 3 },\n      ]}\n      xAxis=\"x\"\n      yAxis=\"y\"\n      lineStyle={{ strokeWidth: 3 }}\n      label=\"Vg = 7V\"\n      displayMarker={false}\n    /\u003e\n    \u003cLineSeries\n      data={[\n        { x: 0, y: 0 },\n        { x: 1, y: 1 },\n        { x: 2, y: 2 },\n        { x: 3, y: 3 },\n        { x: 4, y: 3 },\n        { x: 5, y: 3 },\n      ]}\n      xAxis=\"x\"\n      yAxis=\"y\"\n      displayMarker={true}\n      markerShape=\"circle\"\n      label=\"Vg = 3V\"\n    /\u003e\n    \u003cAxis\n      id=\"x\"\n      position=\"bottom\"\n      label=\"Drain voltage [V]\"\n      displayPrimaryGridLines\n      max={6.1 / factor}\n    /\u003e\n    \u003cAxis\n      id=\"y\"\n      position=\"left\"\n      label=\"Drain current [mA]\"\n      displayPrimaryGridLines\n      max={6.1 * factor}\n    /\u003e\n    \u003cLegend position=\"right\" /\u003e\n  \u003c/Plot\u003e\n);\n```\n\nThis code will result in this example\n\n![Plot Example](./PlotExample.png)\n\n## Installation\n\n`$ npm install --save react-plot`\n\n## Debugging\n\nFor major React hooks debugging use [`@simbathesailor/use-what-changed`](https://github.com/simbathesailor/use-what-changed)\n\n```tsx\nimport { useWhatChanged } from '@simbathesailor/use-what-changed';\n\nfunction Example() {\n\n  // useEffect, useCallback or useMemo\n  useWhatChanged([a, b, c, d]); // debugs the below useEffect\n\n  // displays names of variables instead of index\n  // useWhatChanged([a, b, c, d], 'a, b, c, d', 'anysuffix-string');\n  React.useEffect(() =\u003e {\n    // console.log(\"some thing changed , need to figure out\")\n  }, [a, b, c, d]);\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakodium-oss%2Freact-plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakodium-oss%2Freact-plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakodium-oss%2Freact-plot/lists"}