{"id":17465003,"url":"https://github.com/erdogant/d3graph","last_synced_at":"2025-05-15T19:08:49.378Z","repository":{"id":38779382,"uuid":"228166657","full_name":"erdogant/d3graph","owner":"erdogant","description":"Creation of  interactive networks using d3 Javascript","archived":false,"fork":false,"pushed_at":"2025-04-24T19:16:07.000Z","size":6962,"stargazers_count":186,"open_issues_count":18,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-24T19:42:46.258Z","etag":null,"topics":["adjacency-matrix","d3-javascript","d3graph","d3js","d3js-graph","force-directed-graph","graph","interactive","network","python"],"latest_commit_sha":null,"homepage":"https://erdogant.github.io/d3graph","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erdogant.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":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["erdogant"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-12-15T10:33:12.000Z","updated_at":"2025-04-24T19:16:11.000Z","dependencies_parsed_at":"2024-06-18T19:58:12.194Z","dependency_job_id":"dc1876bb-6d33-4576-9d34-c4f8b376a945","html_url":"https://github.com/erdogant/d3graph","commit_stats":{"total_commits":360,"total_committers":6,"mean_commits":60.0,"dds":"0.26111111111111107","last_synced_commit":"420486396a874d0cb17cae97cb9925b679d6053b"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdogant","download_url":"https://codeload.github.com/erdogant/d3graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254404357,"owners_count":22065641,"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":["adjacency-matrix","d3-javascript","d3graph","d3js","d3js-graph","force-directed-graph","graph","interactive","network","python"],"created_at":"2024-10-18T11:08:19.762Z","updated_at":"2025-05-15T19:08:49.359Z","avatar_url":"https://github.com/erdogant.png","language":"Jupyter Notebook","funding_links":["https://github.com/sponsors/erdogant","https://www.buymeacoffee.com/erdogant)--"],"categories":[],"sub_categories":[],"readme":"# Interactive force-directed network creator (d3graph)\n\n[![Python](https://img.shields.io/pypi/pyversions/d3graph)](https://img.shields.io/pypi/pyversions/d3graph)\n[![Pypi](https://img.shields.io/pypi/v/d3graph)](https://pypi.org/project/d3graph/)\n[![Docs](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/d3graph/)\n[![LOC](https://sloc.xyz/github/erdogant/d3graph/?category=code)](https://github.com/erdogant/d3graph/)\n[![Downloads](https://static.pepy.tech/personalized-badge/d3graph?period=month\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=PyPI%20downloads/month)](https://pepy.tech/project/d3graph)\n[![Downloads](https://static.pepy.tech/personalized-badge/d3graph?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=Downloads)](https://pepy.tech/project/d3graph)\n[![License](https://img.shields.io/badge/license-BSD3-green.svg)](https://github.com/erdogant/d3graph/blob/master/LICENSE)\n[![Forks](https://img.shields.io/github/forks/erdogant/d3graph.svg)](https://github.com/erdogant/d3graph/network)\n[![Issues](https://img.shields.io/github/issues/erdogant/d3graph.svg)](https://github.com/erdogant/d3graph/issues)\n[![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n[![DOI](https://zenodo.org/badge/228166657.svg)](https://zenodo.org/badge/latestdoi/228166657)\n[![Medium](https://img.shields.io/badge/Medium-Blog-black)](https://towardsdatascience.com/creating-beautiful-stand-alone-interactive-d3-charts-with-python-804117cb95a7)\n[![Donate](https://img.shields.io/badge/Support%20this%20project-grey.svg?logo=github%20sponsors)](https://erdogant.github.io/d3graph/pages/html/Documentation.html#)\n\u003c!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)--\u003e\n\u003c!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD\u0026amount=5)--\u003e\n\n\n``d3graph`` is a python package that simplifies the task of creating **interactive** and **stand-alone** networks in **d3 javascript** using **python**.\nFor this package I was inspired by d3 javascript examples but there was no python package that could create such interactive networks. Here it is; a library that automatically creates D3 javascript and HTML code based on an input adjacency matrix in python! This library does not require you any additional installation, downloads or setting paths to your systems environments. You just need python and this library. All other is taken care off. Huray!\n\nThis library will create an interactive and stand-alone network that is build on d3 javascript. ``d3graph`` only requirs an adjacency matrix in the form of an pandas dataframe. Each column and index name represents a node whereas values \u003e0 in the matrix represents an edge. Node links are build from rows to columns. Building the edges from row to columns only matters in directed cases. The network nodes and edges can be adjusted in weight, color etc, based on user defined paramters. \n\n\n\n# \n**⭐️ Star this repo if you like it ⭐️**\n#\n\n### Blogs\n\nRead the blog [Creating beautiful stand-alone interactive D3 charts with Python](https://erdogant.github.io/d3graph/pages/html/Documentation.html#medium-blog) to get a structured overview and usage of ``d3graph``.\n\n\n\n# \n\n### [Documentation pages](https://erdogant.github.io/d3graph/)\n\nOn the [documentation pages](https://erdogant.github.io/d3graph/) you can find detailed information about the working of the ``d3graph`` with many examples. \n\n# \n\n### Installation\n\n##### Install from PyPI\n\n```bash\npip install d3graph\n```\n\n##### Import package\n\n```python\nfrom d3graph import d3graph\n```\n\n# \n\n### Examples\n\nClick on the following image to load the interactive **Titanic** network that is created with ``d3graph``. Note that the relations are determined using [HNet. Click here to go to the page with code to make the network.](https://erdogant.github.io/hnet/pages/html/Use%20Cases.html#titanic-dataset)\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://erdogant.github.io/docs/d3graph/titanic_example/index.html\"\u003e\n     \u003cimg src=\"https://github.com/erdogant/d3graph/blob/master/docs/titanic_example/d3graph.png\" width=\"600\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n##### [Example: Changing node properties](https://erdogant.github.io/d3graph/pages/html/Core%20Functionalities.html#node-label)\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://erdogant.github.io/d3graph/pages/html/Core%20Functionalities.html#node-label\"\u003e\n     \u003cimg src=\"https://github.com/erdogant/d3graph/blob/master/docs/figs/d3graph_node_properties.png\" width=\"900\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n#\n\n##### [Example: Convert source-target list to adjacency matrix](https://erdogant.github.io/d3graph/pages/html/Data.html#create-adjacency-matrix)\n\n#\n\n##### [Example: Breaking of networks using slider](https://erdogant.github.io/d3graph/pages/html/Examples.html)\n\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://erdogant.github.io/d3graph/pages/html/Examples.html\"\u003e\n    \u003cimg src=\"https://github.com/erdogant/d3graph/blob/master/docs/figs/d3graph example.png\" width=\"600\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n### Contribute\n* All kinds of contributions are welcome!\n\n### Citation\nPlease cite d3graph in your publications if this is useful for your research. See column right for citation information.\n\n### Maintainer\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\n* Contributions are welcome.\n* If you wish to buy me a \u003ca href=\"https://erdogant.github.io/donate/?currency=USD\u0026amount=5\"\u003eCoffee\u003c/a\u003e for this work, it is very appreciated :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fd3graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdogant%2Fd3graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fd3graph/lists"}