# LayerSchemaTextAttribute

***

The schema for a text attribute on a layer.

## Properties

### id

> **id**: `string`

The unique identifier for this attribute.

This can be used to fetch statistics, categories, histograms etc. for this attribute\
via the [LayersController.getCategoryData](https://developers.felt.com/js-sdk-api-reference/layerscontroller#getcategorydata), [LayersController.getHistogramData](https://developers.felt.com/js-sdk-api-reference/layerscontroller#gethistogramdata),\
and [LayersController.getAggregates](https://developers.felt.com/js-sdk-api-reference/layerscontroller#getaggregates) methods.

***

### displayName

> **displayName**: `string`

The human-readable name of this attribute.

***

### detailedType

> **detailedType**: `string`

The specific data type of this attribute, providing more detail than the basic type.

For instance, a numeric attribute might be "INTEGER", "FLOAT, etc.

***

### distinctCount

> **distinctCount**: `number`

The number of distinct values present for this attribute across all features.

***

### type

> **type**: `"text"`

Indicates this is a text attribute.

***

### sampleValues

> **sampleValues**: { `value`: `string`; `count`: `number`; }\[]

A small sample of string values for this attribute and their frequency.

| Name    | Type     |
| ------- | -------- |
| `value` | `string` |
| `count` | `number` |
