examples

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 0 Imported by: 0

README

Examples

When you run task, all of the examples are built into the the bin directory of ntcharts. So run any example below like so: ./bin/ntcharts-quickstart.

Quickstart

This tutorial creates a simple Time Series Chart with two data sets utilizing the Bubble Tea framework, Lip Gloss for styling and BubbleZone for mouse support.

ntcharts-quickstart (source)
quickstart gif

Canvas

A Canvas provides a 2D grid to plot arbitrary runes supporting Lip Gloss styles and uses BubbleZone for mouse support.

ntcharts-canvas-logo (source)
logo canvas gif

Graphing

There are various graphing functions for drawing runes onto the Canvas.

Braille

ntcharts-graph-braille (source)
braille graph gif

Candlesticks

ntcharts-graph-candlesticks (source)
candlesticks graph gif

Circles

ntcharts-graph-circles (source)
circles graph gif

Columns

ntcharts-graph-columns (source)
columns graph gif

Lines

ntcharts-graph-lines (source)
lines graph gif

Rows

ntcharts-graph-rows (source)
rows graph gif

Bar Chart

Barcharts displays values as either horizontal rows or vertical columns.

Rows

ntcharts-barchart-horizontal (source)
horizontal barchart gif

Columns

ntcharts-barchart-vertical (source)
vertical barchart gif

Line Chart

Linecharts displays (X,Y) data points onto a 2D grid in various types of charts.

Circles

Circles can be displayed with a given point and radius.

ntcharts-linechart-circles (source)
circles linechart gif

Lines

Lines can be displayed between two points.

ntcharts-linechart-lines (source)
lines linechart gif

Scatter

Scatter charts can be created by plotting abitrary runes onto (X,Y) coordinates.

ntcharts-linechart-scatter (source)
scatter linechart gif

Streaming

Streaming charts display a continuous a line moving across the Canvas from the right side to the left side.

ntcharts-linechart-streaming (source)
streaming linechart gif

Time Series

Time series charts have values on the Y axis and time values on the X axis.

ntcharts-linechart-timeseries (source)
timeseries linechart gif

Wave Line

Wave line charts display a continuous a line going across the line chart.

ntcharts-linechart-wavelines (source)
wavelines linechart gif

Sparkline

Sparklines displays data moving across the Canvas from the right side to the left side.

ntcharts-sparkline (source)
sparkline gif

Heatmap

Heatmaps display (x,y) data over a grid with color mapping.

ntcharts-heatmap-simple Simple Heatmap (source)
simple heatmap image

ntcharts-heatmap-aoc2024 AoC 2024.4 Heatmap (source)
heatmap aoc2024 image

ntcharts-heatmap-functor Functors TUI(source)
heatmap functors still heatmap functors still

ntcharts-heatmap-perlin Perlin Noise TUI (source)
heatmap perlin still

Documentation

Overview

Package examples includes various examples of using the ntcharts package.

Directories

Path Synopsis
barchart
horizontal command
vertical command
canvas
logo command
graph
braille command
candlesticks command
circles command
columns command
lines command
rows command
heatmap
aoc2024 command
functor command
heatcalc command
perlin command
simple command
linechart
circles command
lines command
scatter command
streaming command
timeseries command
wavelines command
Quickstart is a tutorial creating a simple timeserieslinechart that uses keyboard and mouse for zooming in and out, and moving the chart right and left.
Quickstart is a tutorial creating a simple timeserieslinechart that uses keyboard and mouse for zooming in and out, and moving the chart right and left.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL