NIAOJoin Beta
Ecosystem

nvis

available

Niao Visualization

ML & Data

Overview

nvis draws charts without pulling in a browser or GUI toolkit. Plot a loss curve during training, dump a histogram while exploring a dataset, or save an SVG for a report.

There's also ASCII rendering if you just want a quick visual in the terminal or CI log. It knows how to read nml training history, so you don't have to wire that up yourself.

  • Line & scatter
  • Histograms & heatmaps
  • SVG export
  • Training loss plots

Import

import
import "nvis"

Quick start

quick start
import "nvis"
let fig = nvis.line([0.9, 0.85, 0.82, 0.80], { title: "val loss" })
nvis.save_svg(fig, "loss.svg")

Capabilities

High-level overview of what nvis is for.

Line & scatter charts

Plot a sequence over steps (training loss) or x/y pairs. Axes, titles, and colors are configurable.

Histograms & heatmaps

See how a column is distributed, or visualize a 2D matrix (correlations, confusion counts, etc.).

SVG export

Write vector output to a file, scales cleanly in docs and slides.

nml_plot_training

Pass an nml Trainer history object and get train/val loss on one figure.

Terminal ASCII rendering

Render a rough chart in the terminal when you don't want to open a file.

API reference

8 functions and methods in nvis. Grouped by category from the standard library docs.

Charts

SignatureDescription
nvis_line(data)Line chart from `FloatArray` or numeric array
nvis_hist(data, bins)Histogram
nvis_scatter(x, y)Scatter plot
nvis_heatmap(data, rows, cols)2D heatmap
nvis_bar(values)Bar chart

Output

SignatureDescription
nvis_print_ascii(chart)Print chart as ASCII in the terminal
nvis_save_svg(chart, path)Export chart to SVG file
nvis_to_csv(chart)Export chart data as CSV string

Related libraries

More from ML & Data.

available

nml

Niao Machine Learning

Machine learning in Niao: tensors, training loops, classic algorithms, and graph models. Heavy math runs in Rust (SIMD on CPU, CUDA optional).

  • Tensors & autograd
  • Training loops
  • k-means & trees
  • GCN / GraphSAGE
Read more
available

ncl

Niao Column Library

Columnar data like pandas: typed columns, DataFrames, groupby, merges, and CSV I/O. Kernels are vectorized in Rust.

  • Series & DataFrame
  • Vectorized ops
  • groupby & merge
  • SQLite bridge
Read more