Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

Package sparklinedemo is a small gnoweb demo of the block-character series renderer provided by the [p/moul/x/daily/s...

Readme View source

gno.land/r/moul/x/daily/sparklinedemo/v0

A gnoweb demo of the p/moul/x/daily/sparkline library: it sparks a handful of fixed series and shows the three behaviours worth knowing before putting one in a realm — a flat series rendering mid-ramp, a fixed window clamping its outliers, and floor rounding keeping the peak distinct.

It holds no state and contains no rendering logic of its own; the series are hard-coded rather than read from chain state, so Render is deterministic and its output is pinned by an example test.

Render it at /r/moul/x/daily/sparklinedemo/v0.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/r/moul/x/daily/sparklinedemo/v0 dependency graph

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.

Overview

Package sparklinedemo is a small gnoweb demo of the block-character series renderer provided by the p/moul/x/daily/sparkline(/p/moul/x/daily/sparkline/v0) library: it sparks a few fixed series and shows the three behaviours worth knowing before using it in a realm — flat series, clamping, and floor rounding.

It contains no rendering logic of its own. Stateless, so Render is deterministic.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Example
1Render("") / Render("/") -> the full demo

Imports 3

Source Files 4