WebUi

Frontend - Charts

The frontend allows plotting time series. See how to works in a demo.

Usage

Each chart consists of a name, array of timestamp-value pairs and a time window parameters.

import {h, chartTimeSeries} from '../../Frontend/js/src/index.js';

h('div.m4', [
  chartTimeSeries({
    series: [{value: 10, timestamp: Date.now()}, ...],
    title: 'Temperature',
    colorPrimary: 'red',
    width: '800', // in pixels
    timeWindow: 100, // in ms
  }),
]),

Performance