Skip to content

Conversation

@dgeyfman
Copy link
Contributor

Purpose:

This PR introduces a new visualization operator: Sankey Diagram. The Sankey Diagram visualizes flow in a directed graph, where the edges are thicker if the edge weight is larger.

Changes:

  • Removed all Sunburst Chart files, which was a duplicate of Hierarchy Chart operator option.
  • Implemented the Sankey Diagram operator under operators/visualization.
  • Registered the Sankey Diagram in the LogicalOp array (located in edu.uci.ics.texera.workflow.common.operators).
  • Added a Sankey Diagram icon under the operator images.

Testing Instructions:

Use the following csv dataset:
CountryTrade.csv
It is a small directed graph representing countries import/export amounts.
Open Texera workflow editor.
Use the following operators:

  • Use the CSV File Scan operator to load the CountryTrade.csv file.
  • Use the Sankey Diagram operator with the source set to "from", target set to "to", and value set to "value".
  • Use the HTML Visualizer pointed at the HTML content produced by the Sankey Diagram operator.
  • Use the View Results operator to display the output.

Expected Result:

Screenshot 2024-09-19 at 8 47 43 PM
Screenshot 2024-09-19 at 8 48 39 PM

… graph, where the edges are thicker if the edge weight is larger. Added sankey diagram scala code, registered the operator under LogicalOp, and added an icon under operator images.
@dgeyfman dgeyfman self-assigned this Sep 20, 2024
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dgeyfman dgeyfman merged commit 16ae306 into master Sep 21, 2024
@dgeyfman dgeyfman deleted the daniel-sankey-diagram-operator branch September 21, 2024 02:39
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
…2851)

### Purpose:
This PR introduces a new visualization operator: **Sankey Diagram**. The
Sankey Diagram visualizes flow in a directed graph, where the edges are
thicker if the edge weight is larger.

### Changes:
- Removed all Sunburst Chart files, which was a duplicate of Hierarchy
Chart operator option.
- Implemented the **Sankey Diagram** operator under
`operators/visualization`.
- Registered the Sankey Diagram in the `LogicalOp` array (located in
`edu.uci.ics.texera.workflow.common.operators`).
- Added a Sankey Diagram icon under the operator images.

### Testing Instructions:
Use the following csv dataset: 

[CountryTrade.csv](https://github.com/user-attachments/files/17069734/CountryTrade.csv)
It is a small directed graph representing countries import/export
amounts.
Open Texera workflow editor.
Use the following operators:
- Use the **CSV File Scan** operator to load the `CountryTrade.csv`
file.
- Use the **Sankey Diagram** operator with the source set to "from",
target set to "to", and value set to "value".
- Use the **HTML Visualizer** pointed at the HTML content produced by
the Sankey Diagram operator.
   - Use the **View Results** operator to display the output.

### Expected Result:
![Screenshot 2024-09-19 at 8 47
43 PM](https://github.com/user-attachments/assets/259305ac-9602-46fb-81d0-04333e0736f5)
![Screenshot 2024-09-19 at 8 48
39 PM](https://github.com/user-attachments/assets/1c2d6f7d-aeb4-406c-8b78-5ccbd522b3fc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants