ValyroUI Русская версия

Confidence Band Chart

Forecast with confidence intervals and outliers, keyboard-readable points. Pro · Charts and analytics › Trends

A forecast with its uncertainty: actual values, the forecast line, an inner and an outer interval, and the actuals that fell outside it. Every point can be read with the arrow keys or the pointer, the legend is a real list and the data is also a table for screen readers.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add confidence-band-chart
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { ConfidenceBandChart } from 'valyro-ui-pro';

Props

PropTypeDefault
data *BandPoint[]Points in time order: actual values, forecasts and their intervals (any may be missing).
levels[inner: number, outer: number][0.5, 0.95]Confidence of the inner and outer interval, for the legend. Default [0.5, 0.95].
formatValueFormat{}How values read: plain, percent, currency or an Intl unit.
currencystringISO 4217 code for format: 'currency'.
heightnumber240Plot height in px. Default 240.
showOutliersbooleantrueMark actual values outside the outer interval. Default true.
defaultIndexnumberPoint read out at first (keyboard and pointer move it). Default: the last actual.
loadingbooleanfalseData is loading: skeleton.
errorReactNodeLoading failed: shown instead of the chart.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
localestringBCP 47 locale for numbers; defaults to the ThemeProvider's.
labelsPartial<ConfidenceBandChartLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Sparkline · Next: Candlestick Chart · All Charts and analytics