#analytics #real-time #dataset #streaming

perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets

47 stable releases

new 3.2.0 Dec 10, 2024
3.1.7 Nov 30, 2024
3.0.0-rc.1 Jul 27, 2024
2.10.1 May 23, 2024
1.7.2 Nov 26, 2022

#93 in Visualization

Download history 264/week @ 2024-08-22 302/week @ 2024-08-29 36/week @ 2024-09-05 127/week @ 2024-09-12 241/week @ 2024-09-19 68/week @ 2024-09-26 16/week @ 2024-10-03 5/week @ 2024-10-10 255/week @ 2024-10-17 41/week @ 2024-10-24 120/week @ 2024-10-31 124/week @ 2024-11-07 252/week @ 2024-11-14 43/week @ 2024-11-21 271/week @ 2024-11-28 139/week @ 2024-12-05

706 downloads per month

Apache-2.0

1.5MB
34K SLoC

C++ 30K SLoC // 0.1% comments Rust 4.5K SLoC // 0.1% comments JavaScript 48 SLoC // 0.3% comments

The Rust language bindings for Perspective, a high performance data-visualization and analytics component for the web browser.

Examples

A simple example which loads an Apache Arrow and computes a "Group By" operation, returning a new Arrow.

use perspective::client::config::ViewConfigUpdate;
use perspective::client::{TableInitOptions, UpdateData, ViewWindow};
use perspective::server::Server;
use perspective::LocalClient;

let data = UpdateData::Arrow(arrow_vec_data);
let options = TableInitOptions::default();
let table = client.table(data.into(), options).await?;
let mut view_config = ViewConfigUpdate::default();
view_config.group_by = ["CounterParty", "Security"]
    .iter()
    .map(|x| Some(x.to_string()))
    .collect();

let view = table.view(Some(view_config)).await?;
let arrow = view.to_arrow(ViewWindow::default()).await?;

See also

Dependencies

~3–13MB
~163K SLoC