A simple Java Swing application that renders a Sankey (flow) diagram using JFreeChartβs FlowPlot.
- Java Swing application with an embedded Sankey chart
- Uses
FlowPlotfrom JFreeChart - Automatically generated color palette using HSB color space
- Example dataset showing a multi-step resource flow
- Clean, well-structured code suitable for extension
Add the following to your pom.xml:
<dependency>
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.5.4</version>
</dependency>