How to use uplot - 1 common examples

To help you get started, we’ve selected a few uplot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cockroachdb / cockroach-gen / pkg / ui / src / views / cluster / components / linegraph / index.tsx View on Github external
// Updates existing plot with new points
      this.u.setData(uPlotData);
    } else {
      const options = configureUPlotLineChart(
        metrics,
        axis,
        data,
        this.setNewTimeRange,
        () => this.xAxisDomain,
        () => this.yAxisDomain,
      );

      if (this.u) {
        this.u.destroy();
      }
      this.u = new uPlot(options, uPlotData, this.el.current);
    }
  }

uplot

A small, fast chart for time series, lines, areas, ohlc & bars

MIT
Latest version published 5 months ago

Package Health Score

72 / 100
Full package analysis

Popular uplot functions