Recent Releases of d3graph
d3graph - 2.6.0
- Dark mode functionality is added
- Background parameter is added
- Slider and Save button graphics are improved
- When no filepath is specified, HTML get a random name but are all stored in the tempdir with subdir: d3graph
- docstrings improved
- Jupyter Notebook
Published by erdogant 7 months ago
d3graph - v2.4.16
- Add functionality to set the slider theshold
- See documentation pages for more information.
- Issue #17
- Jupyter Notebook
Published by erdogant over 2 years ago
d3graph - v2.4.14
- Added functionality to change the edge style #30 More information can be found in the documentation pages.
- Jupyter Notebook
Published by erdogant over 2 years ago
d3graph - v2.4.5
- edge label weight can be defined to show the weights on the edges.
- Edge distance is extracted from the adjacency matrix but can also be set as a constant.
- The range of edge distance can be set with
minmax_distance - Edge weight (thickness) is extracted from the adjacency matrix but can also be set as a constant.
- The range of edge distance can be set with
minmax
- Jupyter Notebook
Published by erdogant almost 3 years ago
d3graph - v2.4.4
- added functionality to add text labels on the edges.
- See documentation for the details.
- Updated documentation pages, added new examples, such as "on click" functionality.
- Jupyter Notebook
Published by erdogant almost 3 years ago
d3graph - v2.3.9
- added on click functionality. With the
clickinput parameter, nodes can be highlighted.
``` from d3graph import d3graph d3 = d3graph() adjmat, df = d3.import_example('karate') d3.graph(adjmat, color='cluster')
Specify click event
html = d3.show(click={'fill': 'green', 'stroke': 'black', 'size': 2, 'stroke-width': 2})
No event
html = d3.show(click=None)
```
- Jupyter Notebook
Published by erdogant about 3 years ago
d3graph - v2.3.2
- Added functionality to hide the slider in output HTML
More information can be found in the documentation.
- Jupyter Notebook
Published by erdogant over 3 years ago
d3graph - v2.3.0
- New feature: Different edge markers (circle, arrow, square, stub) can now be set for marker_end.
- Name convention:
Inputparameter hover is changed intotooltip - Catches more errors, improved logger information, code cleaning and refactoring.
Checkout the documentation pages for more information about edge markers.
- Jupyter Notebook
Published by erdogant over 3 years ago
d3graph - v2.2.0
- Fix for changing edge colors #7
- jinja2 latest version is supported again #9
- added Two scaler for node size and edge width (zscore and minmax). The minmax was the default but frequently resulted in skewed values, and thus sizes and width because of outliers. The zscore is more robust against outliers and now the default.
- edgecolor can now also be based on clustering colors: `d3.setnodeproperties(edgecolor='cluster')`
- The minimum and maximum range of the node size can be set with the parameter (minmax):
d3.set_node_properties(minmax=[10, 50]) - The minimum and maximum range of the edge width can be set with the parameter (minmax):
d3.set_edge_properties(minmax=[1, 10]) - Documentation pages updated
- Jupyter Notebook
Published by erdogant over 3 years ago
d3graph - v2.0.2
- Fix for slider range.
- label will replace the node text if used.
- hover will show text when hovering over a node.
``` from d3graph import d3graph d3 = d3graph() adjmat = d3.importexample('bigbang') d3.graph(adjmat) d3.setnode_properties(label=adjmat.columns.values+' are the names', hover=['\nFemale\nMore info', 'Female', 'Male', 'Male', 'Female', 'Male', 'Male']) d3.show()
```
- Jupyter Notebook
Published by erdogant almost 4 years ago
d3graph - 2.0.0
Major update. If you prefer the previous version, fix it to version 1.0.3
- The code is refactored entirely
- Many redundant functions are removed
- code complexity is lowered
- docstrings are updated and included
- Classes are used for more ease of use
- node properties can easily be adjusted
- edge properties can easily be adjusted
- Documentation pages are available
Example how to create networks using d3graph:
``` from d3graph import d3graph, vec2adjmat
source = ['node A', 'node F', 'node B', 'node B', 'node B', 'node A', 'node C', 'node Z'] target = ['node F', 'node B', 'node J', 'node F', 'node F', 'node M', 'node M', 'node A'] weight = [5.56, 0.5, 0.64, 0.23, 0.9, 3.28, 0.5, 0.45]
Convert to adjacency matrix
adjmat = vec2adjmat(source, target, weight=weight)
Initialize with default parameters
d3 = d3graph()
Proces adjmat
d3.graph(adjmat)
Set node properties using the setnodeproperties functionality
d3.setnodeproperties(color=adjmat.columns.values)
Plot
d3.show()
Simply make changes in the node properties and plot again with d3.show()
print(d3.node_properties)
Simply make changes in the edge properties and plot again d3.show()
print(d3.edge_properties)
```
- Jupyter Notebook
Published by erdogant almost 4 years ago
d3graph -
- Code refactoring
- Code cleaning
- Docstrings added
- private functions
- Jupyter Notebook
Published by erdogant about 6 years ago
d3graph - Moved to new git and changed links
- Jupyter Notebook
Published by erdogant about 6 years ago
d3graph - arrowheads fix!
This update fixed the arrowheads!
- Jupyter Notebook
Published by erdoganta about 6 years ago
d3graph - Very first one!
Very first release of d3graph
- Jupyter Notebook
Published by erdoganta about 6 years ago