dennisadriaans/vue-chrts
Overview
This skill builds SankeyChart components for Vue 3 to visualize flows, conversions, and resource distribution between stages. It maps nodes and links into an intuitive flow diagram where link width represents quantity. Use it to explain user funnels, energy flows, budget allocations, and other staged transfers.
How this skill works
You provide a data object with nodes (id, optional label) and links (source, target, value). The component computes layout columns, positions nodes, and draws links whose widths scale with link.value. Props let you control height, node sizing, alignment, coloring, sorting, legend behavior, and layout iterations.
When to use it
- Visualizing conversion funnels or user journeys (drop-off and flow)
- Showing resource or energy distribution between sources and sinks
- Explaining budget or spend allocation across departments
- Tracing multi-step processes where magnitude between stages matters
- When you need a compact, columnar view of many-to-many flows
Best practices
- Provide unique string ids for every node and ensure links reference those ids exactly
- Supply a label accessor for readable node text and a linkValue accessor if your value field is nonstandard
- Use nodeColor and linkColor accessors to encode categories or highlight important sinks/sources
- Choose nodeAlign ('left', 'right', 'justify') to match the narrative flow: left/right for directional emphasis, justify to spread columns
- Increase iterations for denser graphs to improve bundle separation; tune nodeWidth/nodePadding to avoid overlap
Example use cases
- Identify where users drop out of a multi-step sign-up funnel and quantify recovery opportunities
- Map energy flows from fuels to generation and end-use sectors for reports or presentations
- Show how total revenue splits across salaries, marketing, operations, and profit
- Display supply chain flows from raw materials through processing to distribution centers
- Compare channel conversions by coloring links to highlight high- or low-performing paths
FAQ
Duplicate ids break the layout — ensure every node.id is unique before rendering.
Can I show cycles (A→B→A)?
No. The Sankey layout used here does not support circular references; transform cycles into an acyclic representation or aggregate nodes.
8 skills
This skill helps you visualize flows and resource distribution with SankeyChart components for clear energy, user journeys, and budget analyses.
This skill helps you build BubbleChart components in Vue to visualize three variables using x, y, and size.
This skill helps you build reusable line and area charts in Vue 3, enabling time-series visualization with flexible formatting and legends.
This skill helps you build and customize bar chart components for grouped, stacked, and horizontal layouts across datasets.
This skill enables Nuxt projects to render charts with auto-imported vue-chrts components and types for rapid data visualization.
This skill helps you visualize project timelines with customizable GanttChart components, enabling clear scheduling, tracking, and categorization of tasks.
This skill helps you create interactive map visualizations with topojson and dotted maps, enabling choropleth coloring, pins, and regional insights.
This skill helps you apply common patterns and best practices in vue-chrts for data formatting, legends, and chart styling across types.