UNPKG

@progress/kendo-react-charts

Version:

React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package

65 lines (64 loc) 4.14 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { drawing } from '@progress/kendo-drawing'; import { ErrorBarLine, ErrorBarsVisualArgs } from '../../common/property-types.js'; /** * @hidden */ export interface SeriesErrorBars { /** * The color of the error bars. Accepts a valid CSS color string, including hex and rgb. */ color?: string; /** * If set to `false`, the caps of the error bars are not displayed. By default, the caps are visible. */ endCaps?: boolean; /** * The error bars line options. */ line?: ErrorBarLine; /** * The error bars value ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/error-bars#toc-calculating-values-based-on-data)). The value option is supported when [series.type](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#toc-type) is set to `"bar"`, `"column"`, `"line"`, or `"area"`. * * The following value types are supported: * - `"stderr"`—The standard error of the series values will be used to calculate the point low and high values. * - `"stddev(n)"`—The standard deviation of the series values will be used to calculate the point low and high values. Between the parentheses, a number can be specified that will be multiplied by the calculated standard deviation. * - `"percentage(n)"`—A percentage of the point value. * - A number that will be subtracted or added to the point value. * - An array that holds the low and high difference from the point value. * - A function that returns the `errorBars` point value. */ value?: string | number | any[] | ((data: { value: number; }) => string | number | any[]); /** * A function that for creating custom visuals for the error bars. * * The available argument fields are: * - `rect`—The geometry [`Rect`](https://www.telerik.com/kendo-react-ui/components/drawing/api/geometry/rect) that defines where the visual has to be rendered. * - `options`—The error bar options. * - `createVisual`—A function that can be used to get the default visual. * - `low`—The error bar low value. * - `high`—The error bar high value. * - `sender`—The Chart instance. */ visual?: (e: ErrorBarsVisualArgs) => drawing.Element; /** * The value of the [`xAxis`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartxaxisitemprops) error bars ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/error-bars#toc-calculating-values-based-on-data)). * * For a list of the supported value types, refer to the [`series.errorBars.value`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartserieserrorbarsprops#toc-value) option. The `xValue` option is supported when [`series.type`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#toc-type) is set to `"scatter"`, `"scatterLine"`, or `"bubble"`. */ xValue?: string; /** * The value of the [`yAxis`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartyaxisitemprops) error bars ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/error-bars#toc-calculating-values-based-on-data)). * * For a list of supported value types, refer to the [`series.errorBars.value`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartserieserrorbarsprops#toc-value) option. The `yValue` option is supported when [`series.type`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#toc-type) is set to `"scatter"`, `"scatterLine"`, or `"bubble"`. */ yValue?: string; }