42 stable releases
new 3.1.4 | Nov 7, 2024 |
---|---|
3.1.0 | Sep 23, 2024 |
3.0.0-rc.1 | Jul 27, 2024 |
2.10.1 | May 23, 2024 |
1.7.2 | Nov 26, 2022 |
#108 in Visualization
420 downloads per month
1.5MB
34K
SLoC
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
perspective-js
for the JavaScript API.perspective-python
for the Python API.perspective-server
for Data Binding details.perspective-client
for the Rust Client APIperspective-viewer
for the WebAssembly<perspective-viewer>
Custom Element API.
Dependencies
~3–13MB
~163K SLoC