sankey-diagram-creator

Generate interactive Sankey diagrams from CSV, pandas DataFrames, or dictionaries.

86|18|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill sankey-diagram-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sankey-diagram-creator
Source: https://github.com/dkyazzentwatwa/chatgpt-skills/tree/main/sankey-diagram-creator
Command: npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill sankey-diagram-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires plotly, pandas, kaleido, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the creation of complex flow visualizations, making it easy to understand relationships and data movement between different entities.

Core Features & Use Cases

  • Versatile Input: Accepts data from dictionaries, pandas DataFrames, or CSV files.
  • Customization: Allows detailed styling of nodes and links, including colors, opacity, and labels.
  • Multiple Outputs: Exports diagrams as interactive HTML, or static PNG/SVG images.
  • Use Case: Visualize the flow of a company's budget from revenue sources through various expense categories to savings, or map user journeys through a website.

Quick Start

Use the sankey-diagram-creator skill to create an interactive Sankey diagram from the provided CSV file 'flows.csv', using 'from' as the source column, 'to' as the target column, and 'amount' as the value column, and save it as 'budget.html'.

Frequently Asked Questions about sankey-diagram-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an interactive Sankey diagram from a CSV file?

To create an interactive Sankey diagram from a CSV file, you load the data using pandas and map the source, target, and value columns to generate the flow visualization using Plotly. The resulting chart can be exported as an HTML file.

What is the best way to visualize flow data from a pandas DataFrame?

Visualizing flow data from a pandas DataFrame is best achieved by generating an interactive Sankey diagram. This approach maps relationships and data movement between entities, allowing detailed customization of node and link styling such as colors and opacity.

Does Plotly support exporting Sankey diagrams to static image formats like PNG or SVG?

Yes, Plotly supports exporting Sankey diagrams to static image formats like PNG or SVG by utilizing the Kaleido library. This allows users to generate static images alongside interactive HTML outputs for their flow visualizations.

Can I customize node and link colors in a Sankey diagram?

You can customize node and link colors in a Sankey diagram by applying detailed styling options provided during generation. This includes adjusting colors, opacity, and labels for both nodes and links to clearly distinguish data movement.

What are the limitations of using Kaleido for exporting Plotly charts?

A limitation of using Kaleido for exporting Plotly charts is that it produces static images, meaning the interactive features of the HTML output, such as hover tooltips and dynamic zooming, are lost in the PNG or SVG formats.