Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

ReduceDataOptions interface

Options for how to turn DataFrames into an array of display values

Signature

typescript
export interface ReduceDataOptions 

Import

typescript
import { ReduceDataOptions } from '@grafana/data';

Properties

PropertyTypeDescription
calcsstring[]When !values, pick one value for the whole field
fieldsstringWhich fields to show. By default this is only numeric fields
limitnumberif showing all values limit
valuesboolean

calcs property

When !values, pick one value for the whole field

Signature

typescript
calcs: string[];

fields property

Which fields to show. By default this is only numeric fields

Signature

typescript
fields?: string;

limit property

if showing all values limit

Signature

typescript
limit?: number;

values property

Signature

typescript
values?: boolean;