Bloccs.Web.Components.Chart (bloccs_web v0.3.0)

Copy Markdown View Source

Server-rendered SVG charts for the Messages panel — no client charting library. throughput/1 is an events-per-second volume chart (one bar per 1s bucket, failures stacked in red, à la Sentry); sparkline/1 is a tiny inline line. The series is computed by Bloccs.Web.Telemetry.Flow and redrawn each frame.

Summary

Functions

A tiny inline sparkline for a list of numbers (per-node throughput, etc.).

Functions

sparkline(assigns)

A tiny inline sparkline for a list of numbers (per-node throughput, etc.).

Attributes

  • values (:list) (required)

throughput(assigns)

Attributes

  • series (:list) (required)