# DataLabelOptionsProperty

The options that determine the presentation of the data labels.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const dataLabelOptionsProperty: quicksight.CfnAnalysis.DataLabelOptionsProperty = {
  categoryLabelVisibility: 'categoryLabelVisibility',
  dataLabelTypes: [{
    dataPathLabelType: {
      fieldId: 'fieldId',
      fieldValue: 'fieldValue',
      visibility: 'visibility',
    },
    fieldLabelType: {
      fieldId: 'fieldId',
      visibility: 'visibility',
    },
    maximumLabelType: {
      visibility: 'visibility',
    },
    minimumLabelType: {
      visibility: 'visibility',
    },
    rangeEndsLabelType: {
      visibility: 'visibility',
    },
  }],
  labelColor: 'labelColor',
  labelContent: 'labelContent',
  labelFontConfiguration: {
    fontColor: 'fontColor',
    fontDecoration: 'fontDecoration',
    fontFamily: 'fontFamily',
    fontSize: {
      absolute: 'absolute',
      relative: 'relative',
    },
    fontStyle: 'fontStyle',
    fontWeight: {
      name: 'name',
    },
  },
  measureLabelVisibility: 'measureLabelVisibility',
  overlap: 'overlap',
  position: 'position',
  totalsVisibility: 'totalsVisibility',
  visibility: 'visibility',
};
```

## Properties

- `categoryLabelVisibility`: string — Determines the visibility of the category field labels.

- `dataLabelTypes`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DataLabelTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DataLabelTypeProperty.html)[] — The option that determines the data label type.

- `labelColor`: string — Determines the color of the data labels.

- `labelContent`: string — Determines the content of the data labels.

- `labelFontConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.FontConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.FontConfigurationProperty.html) — Determines the font configuration of the data labels.

- `measureLabelVisibility`: string — Determines the visibility of the measure field labels.

- `overlap`: string — Determines whether overlap is enabled or disabled for the data labels.

- `position`: string — Determines the position of the data labels.

- `totalsVisibility`: string — Determines the visibility of the total.

- `visibility`: string — Determines the visibility of the data labels.
