import pandas as pd import holoviews as hv from holoviews import dim, opts from bokeh.sampledata.les_mis import data hv.extension('matplotlib') hv.output(fig='svg', size=200) links = pd.DataFrame(data['links']) print(links.head(3)) hv.Chord(links) nodes = hv.Dataset(pd.DataFrame(data['nodes']), 'index') nodes.data.head() hv.Chord((links, nodes)).select(value=(5, None)).opts( opts.Chord(cmap='Category20', edge_color=dim('source').astype(str), labels='name', node_color=dim('index').astype(str)))