Python package to create interactive network based on d3js.
Interactive force-directed network creator (d3graph)
d3graph only requirs an adjacency matrix in the form of an pandas dataframe. Each column and index name represents a node whereas values >0 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.
⭐️ Star this repo if you like it ⭐️
Read the blog Creating beautiful stand-alone interactive D3 charts with Python to get a structured overview and usage of
On the documentation pages you can find detailed information about the working of the
d3graph with many examples.
Install from PyPI
pip install d3graph
from d3graph import d3graph
Click 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.
Example: Changing node properties
Example: Convert source-target list to adjacency matrix
Example: Breaking of networks using slider
- All kinds of contributions are welcome!
Please cite d3graph in your publications if this is useful for your research. See column right for citation information.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.