apache / apache/echarts

[Feature] Sankey - How to group sankey data by fixed columns

Open
#18,482 1 comment 0 reactions 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

As a user, I have tabular data that represents the flow of data from one type of entity to another.

### Example 1:
Imagine I have this table data.
The table column would create a column like layout for the sankey diagram like so:

ID | Source | Destination | Energy
-- | -- | -- | --
1 | feeding point | building 1 | 100
2 | feeding point | building 2 | 200
3 | building 1 | b1 floor 1 | 75
4 | building 1 | b1 floor 2 | 25
5 | building 2 | b2 floor 1 | 150
6 | building 2 | b2 floor 2 | 50

Which would output this:
![image](https://user-images.githubusercontent.com/6743796/230494007-3db96db9-b9c7-4252-a057-842043332632.png)

## Example 2
Each table column maps to a level

![CleanShot 2023-04-06 at 14 04 42@2x](https://user-images.githubusercontent.com/6743796/230493803-631b06c3-6baa-4f11-9445-9a37e8065ddb.png)

### What does the proposed API look like?
Work in progress
.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.