+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "calculateFieldStats" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## calculateFieldStats() function ### calculateFieldStats() function Signature ```typescript export declare function calculateFieldStats(rows: LogRowModel[], extractor: RegExp): LogLabelStatsModel[]; ``` Import ```typescript import { calculateFieldStats } from '@grafana/data'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | rows | LogRowModel[] | | | extractor | RegExp | | Returns: `LogLabelStatsModel[]`