{"id":17859185,"url":"https://github.com/ire4564/react-tooltip-bubble-chart","last_synced_at":"2025-03-20T18:31:12.248Z","repository":{"id":64644447,"uuid":"574875271","full_name":"ire4564/react-tooltip-bubble-chart","owner":"ire4564","description":"✨ react-tooltip-bubble-chart✨ , This is a bubble chart component that includes a tooltip using d3. I created a component based on React and Typescript by referring to the open source Draw a bubble chart. ","archived":false,"fork":false,"pushed_at":"2022-12-18T11:30:56.000Z","size":58822,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T04:20:45.871Z","etag":null,"topics":["charts","d3","react","react-bubble-chart","typescript"],"latest_commit_sha":null,"homepage":"","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/ire4564.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-06T09:10:26.000Z","updated_at":"2024-02-25T22:57:36.000Z","dependencies_parsed_at":"2023-01-29T19:02:45.786Z","dependency_job_id":null,"html_url":"https://github.com/ire4564/react-tooltip-bubble-chart","commit_stats":null,"previous_names":["ire4564/react-d3-tooltip-bubble-chart"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ire4564%2Freact-tooltip-bubble-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ire4564%2Freact-tooltip-bubble-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ire4564%2Freact-tooltip-bubble-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ire4564%2Freact-tooltip-bubble-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ire4564","download_url":"https://codeload.github.com/ire4564/react-tooltip-bubble-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244079569,"owners_count":20394754,"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":["charts","d3","react","react-bubble-chart","typescript"],"created_at":"2024-10-28T06:03:24.177Z","updated_at":"2025-03-20T18:31:12.243Z","avatar_url":"https://github.com/ire4564.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-tooltip-bubble-chart\n\n![FILES](https://img.shields.io/github/directory-file-count/ire4564/react-tooltip-bubble-chart?style=for-the-badge)\n![LICENSE](https://img.shields.io/npm/l/react-tooltip-bubble-chart?style=for-the-badge)\n![DOWNLOADS](https://img.shields.io/npm/dt/react-tooltip-bubble-chart?style=for-the-badge)\n\nThis is a bubble chart component that includes a tooltip using `d3`. I created a component based on `React` and `Typescript` by referring to the open source [Draw a bubble chart](https://medium.com/react-courses/who-doesnt-like-charts-draw-a-bubble-chart-with-react-d3-typescript-2faf998109e2). When the mouse `hovers` over the bubble chart object, the contents inside the bubble chart are displayed as a `tooltip`. You can also customize the movement of the bubble chart through the `move` setting. This library can be an excellent choice for data visualization. I hope this is what you were looking for.\n\n\u003cbr/\u003e\n\n## ✨ Features\n\n- ✌ Written TypeScript\n- ✅ Available in React\n- 💬 Possible Fine text alignment\n- 🌀 Available Interactive motion\n- 💅 Can Custom each bubble chart object\n- 🌟 Can check the contents of the object as a tooltip\n\n\u003cbr/\u003e\n\n## 🔧 Installation\n\n```bash\nnpm install react-tooltip-bubble-chart #npm\n```\n\n\u003cbr/\u003e\n\n## 📦 Example\n\n![Example](https://user-images.githubusercontent.com/97079582/206947747-24172c87-2aff-412a-b317-2ce39753107f.gif)\n\n```tsx\nimport \"./App.css\";\nimport BubbleChart from \"react-tooltip-bubble-chart\";\n\nfunction Example() {\n  const bubbleData = [\n    {\n      fillColor: \"rgb(52, 202, 173, 0.3)\",\n      id: 5,\n      name: \"Setting\\nme\",\n      size: 50,\n      dYdX1: { dy: -2, dx: -3 },\n      dYdX2: { dy: 8, dx: -20 },\n    },\n    {\n      fillColor: \"rgb(52, 202, 173, 0.3)\",\n      id: 6,\n      name: \"Getting\\nStart\",\n      size: 120,\n      dYdX1: { dy: -2, dx: -4 },\n    },\n    {\n      fillColor: \"rgb(52, 202, 173, 0.3)\",\n      id: 7,\n      name: \"Setting\\nme\",\n      size: 50,\n      dYdX1: { dy: -2, dx: -3 },\n      dYdX2: { dy: 8, dx: -20 },\n    },\n  ];\n\n  return (\n    \u003cdiv\u003e\n      \u003cBubbleChart\n        bubblesData={bubbleData}\n        width={700}\n        height={470}\n        textFillColor=\"#717C84\"\n        backgroundColor=\"white\"\n        minValue={1}\n        maxValue={150}\n        move={true}\n      /\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default Example;\n```\n\n## ✔ Bubble Chart DataType\n\n```tsx\nexport namespace BubbleChartTypes {\n  export type Data = {\n    fillColor: string;\n    id: number;\n    name: string;\n    size: number;\n    dYdX1: { dy: number; dx: number };\n    dYdX2: { dy: number; dx: number };\n    dYdX3: { dy: number; dx: number };\n  };\n}\n```\n\n\u003cbr/\u003e\n\n## 👀 Props\n\n| Prop              | Description                                                  | Type      | Test          |\n| ----------------- | ------------------------------------------------------------ | --------- | ------------- |\n| `bubblesData`     | An array of text and `setting values` ​​for the bubble chart | `array`   | bubblesData[] |\n| `move`            | Bubble chart `animation` settings dropdown                   | `boolean` | true          |\n| `width`           | `Width` of the entire area of ​​the bubble chart             | `number`  | 700           |\n| `height`          | `Height` of the entire area of ​​the bubble chart            | `number`  | 470           |\n| `backgroundColor` | Set `background color` behind bubble chart                   | `string`  | white         |\n| `textFillColor`   | Change the `color of the text` inside the bubble chart       | `string`  | #717C84       |\n| `minValue`        | Bubble chart `minimum` weight value                          | `number`  | 1             |\n| `maxValue`        | Bubble chart `maximum` weight value callback                 | `number`  | 150           |\n\n\u003cbr/\u003e\n\n## ⭕ Test\n\nIf you need intuitive usage, you can try this library right away through Storybook. You can check the operation more intuitively. Please refer to the information below.\n\n[✨Awsome Storybook Page✨](https://ire4564.github.io/react-tooltip-bubble-chart/?path=/story/example-bubblechart--move)\n\nIf you want to run it yourself, follow the command below.\n\n```bash\n  cd /storybook \u0026\u0026 npm run storybook\n```\n\n\u003cbr/\u003e\n\n## 📜 License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fire4564%2Freact-tooltip-bubble-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fire4564%2Freact-tooltip-bubble-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fire4564%2Freact-tooltip-bubble-chart/lists"}