Crates.io | visualizer-cli |
lib.rs | visualizer-cli |
version | 0.1.3 |
source | src |
created_at | 2021-03-26 18:56:08.901096 |
updated_at | 2021-03-26 23:30:00.467485 |
description | Shows a visualization of supported values in a new window. |
homepage | |
repository | https://github.com/hediet/rust-visualizer/ |
max_upload_size | |
id | 373933 |
size | 4,302,787 |
A tool to visualize data. See this playground for which data can be visualized.
Based on @hediet/visualization which also powers the Debug Visualizer extension for VS Code.
Best for debugging algorithms. Not suited to visualize large datasets. Requires WebView 2 on Windows.
cargo install visualizer-cli
cat data.json | visualize
With data.json
:
{
"$schema": "https://hediet.github.io/visualization/docs/visualization-data-schema.json",
"kind": { "graph": true },
"nodes": [
{ "id": "1", "label": "1" },
{ "id": "2", "label": "2", "color": "orange" },
{ "id": "3", "label": "3" }
],
"edges": [
{ "from": "1", "to": "2", "color": "red" },
{ "from": "1", "to": "3" }
]
}
cat data.json | visualize
With data.json
:
{
"$schema": "https://hediet.github.io/visualization/docs/visualization-data-schema.json",
"kind": {
"plotly": true
},
"data": [
{
"type": "mesh3d",
"x": [ 0, 0, 0, ... ],
"y": [ 0, 1, 2, ... ],
"z": [ 0, 0.84, 0.9, ... ]
}
]
}
See the visualizer
crate.
This CLI uses Tauri/WRY to host a webview which loads @hediet/visualization.