SkillAgentSearch skills...

Nx2dw

A small utility to visualize networkX graphs as Datawrapper scatterplots.

Install / Use

/learn @jfreyberg/Nx2dw
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

nx2dw

A small utility to visualize NetworkX graphs as Datawrapper scatterplots. This tool helps transform your graph data into interactive, visually appealing scatterplots using Datawrapper.

Setup

  1. Clone this repository:

    git clone https://github.com/jfreyberg/nx2dw.git
    cd nx2dw
    
    
  2. Import the nx2dw class:

    from nx2dw import nx2dw
    
    
  3. Initialize the client with your Datawrapper API token (chart write rights required):

    client = nx2dw(ACCESS_TOKEN, TEAM_ID, FOLDER_ID)
    
    • Replace ACCESS_TOKEN with your API token.
    • TEAM_ID and FOLDER_ID are optional parameters for organizing your output.
  4. Create a visualization from a NetworkX graph:

    chart_id = client.create_datawrapper_graph(networkx_graph_object)
    

Customization

You can customize the network by passing additional arguments to create_datawrapper_graph. For details, see the source code. Refer to the example usage script for more insights. After generating the network you can further customize and edit it in the Datawrapper editor.

Example Output

Here's an example of what you can create with this tool:

<img src="example.png" alt="Example output of nx2dw">

<sub>Data is from Kaggle: Star Wars Social Network</sub>

About

This tool was originally created to generate a network for my blog post Social (and other) networks in Datawrapper.

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated6mo ago
Forks0

Languages

Python

Security Score

62/100

Audited on Sep 22, 2025

No findings