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

sparklinedemo/v0 package

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.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

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

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/sparklinedemo/v0.Render()"

Result