SkilVaultSign inStart free

Catalogue / chart-render

chart-render

MITSignedRender distribution and trend views from the same normalized measurement records. Use for comparing chart values and exporting a PNG or SVG.
---
name: chart-render
description: Render distribution and trend views from the same normalized measurement records. Use for comparing chart values and exporting a PNG or SVG.
---

Chart rendering

Select a view based on the question. Use a distribution for the spread of observed values, a trend for elapsed time, and a table for exact values. Reuse the measurements and units accepted by ingestion. Keep recorded zeroes. Treat null as a gap in a trend and exclude it from distribution counts. Display skipped row counts. Keep filters and unit selection consistent when the user switches views.

The renderer consumes measurement-records/1 JSON with units and records containing elapsed_s and temperature_c. Use the included normalized fixture or output from the portable rawdata-ingest skill. Install Matplotlib in your environment, then run from the skill folder:

python scripts/render_chart.py references/measurements.json trend.png --view trend
python scripts/render_chart.py references/measurements.json distribution.svg --view distribution

The trend view sorts by elapsed time and keeps the supplied row order for observations sharing a timestamp. This preserves the recorded sequence when a logger writes several readings in one clock tick.

The renderer prints the same data range and observation count for either view. It adds human-readable provenance metadata to PNG. Check displayed units and source counts, then open both exports. CSV exports intended for desktop Excel can use a UTF-8 BOM if the consuming workflow requires it.