Esacode

Docs / Blocks / Visualizers

Heatmap

A grid of values as colours: a matrix from a file or the latest one of a live stream.

A view in the browser (JavaScript) Visualizers Version 1.0 Code you can open and adapt

How it works

Connect a file with a matrix (CSV of numbers, or JSON: a list of rows, or {"matrix": [[...]]}) or live telemetry whose items carry a matrix (ctx.telemetry("grid", {"matrix": rows})). The newest matrix is drawn, with the colour scale you choose; hover a cell to read its value.

Inputs

InputTakesWhat it is
Matrix
data
Stream or Table or Files
csv, json
Rows of numbers; from a stream, the field named below Takes several connections.

Settings

SettingDefaultWhat it does
Field in the stream
field
matrix
Colours
colormap
viridis
One of: viridis, magma, coolwarm, gray
Lowest value
min
empty Empty = the smallest in the matrix
Highest value
max
empty Empty = the largest in the matrix
Write the values in the cells
values
off

Where it runs

In the browser, on the flow's View page and in the run's results, in a sandbox without network access. It needs no worker.

More in Visualizers