RavenRS · Rust GUI

SankeyChart

Edit and run the SankeyChart RavenRS example in your browser. Explore its Rust code and download a Cargo project for desktop and WebAssembly.

One declarative Rust interface, GPU rendering, reactive state and semantic design tokens. Free and open source under MIT OR Apache-2.0.

Rust source

fn sankey_chart() -> impl View {
    SankeyChart::new()
        .title("Where the money goes")
        .flow("Salary", "Taxes", 1200.0)
        .flow("Salary", "Home", 1500.0)
        .flow("Salary", "Savings", 800.0)
        .flow("Freelance", "Savings", 600.0)
        .flow("Home", "Rent", 1100.0)
        .flow("Home", "Power", 400.0)
        .flow("Savings", "Funds", 900.0)
        .flow("Savings", "Stocks", 500.0)
        .format(|value| format!("$ {value:.0}"))
        .height(300.0)
}

The interactive preview loads when JavaScript and WebGPU or WebGL2 are available. You can read the guide and examples here at any time.

More examples