Slider Properties
The function of the slider is to break the network on its weights with an interactive slider.
Set Slider Threshold
The slider can be set in a particular state on start-up with the set_slider parameter.
# Import library
from d3graph import d3graph
# Initialize
d3 = d3graph()
# Load example data set
adjmat = d3.import_example('bigbang')
# Create the graph with default setting
d3.graph(adjmat)
# Show the chat and break the network on threshold value 3.
d3.show(set_slider=3)
Remove Slider
The slider can be removed from the html.
# Import library
from d3graph import d3graph
# Initialize
d3 = d3graph()
# Load example data set
adjmat = d3.import_example('bigbang')
# Create the graph with default setting
d3.graph(adjmat)
# Show the chat and break the network on threshold value 3.
d3.show(show_slider=False)