# ChartAxisLabelOptionsProperty

The label options for an axis on a chart.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 chartAxisLabelOptionsProperty: quicksight.CfnDashboard.ChartAxisLabelOptionsProperty = {
  axisLabelOptions: [{
    applyTo: {
      column: {
        columnName: 'columnName',

        // the properties below are optional
        dataSetIdentifier: 'dataSetIdentifier',
        topicIdentifier: 'topicIdentifier',
      },
      fieldId: 'fieldId',
    },
    customLabel: 'customLabel',
    fontConfiguration: {
      fontColor: 'fontColor',
      fontDecoration: 'fontDecoration',
      fontFamily: 'fontFamily',
      fontSize: {
        absolute: 'absolute',
        relative: 'relative',
      },
      fontStyle: 'fontStyle',
      fontWeight: {
        name: 'name',
      },
    },
  }],
  sortIconVisibility: 'sortIconVisibility',
  visibility: 'visibility',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

chart_axis_label_options_property = quicksight.CfnDashboard.ChartAxisLabelOptionsProperty(
    axis_label_options=[quicksight.CfnDashboard.AxisLabelOptionsProperty(
        apply_to=quicksight.CfnDashboard.AxisLabelReferenceOptionsProperty(
            column=quicksight.CfnDashboard.ColumnIdentifierProperty(
                column_name="columnName",

                # the properties below are optional
                data_set_identifier="dataSetIdentifier",
                topic_identifier="topicIdentifier"
            ),
            field_id="fieldId"
        ),
        custom_label="customLabel",
        font_configuration=quicksight.CfnDashboard.FontConfigurationProperty(
            font_color="fontColor",
            font_decoration="fontDecoration",
            font_family="fontFamily",
            font_size=quicksight.CfnDashboard.FontSizeProperty(
                absolute="absolute",
                relative="relative"
            ),
            font_style="fontStyle",
            font_weight=quicksight.CfnDashboard.FontWeightProperty(
                name="name"
            )
        )
    )],
    sort_icon_visibility="sortIconVisibility",
    visibility="visibility"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

ChartAxisLabelOptionsProperty chartAxisLabelOptionsProperty = ChartAxisLabelOptionsProperty.builder()
        .axisLabelOptions(List.of(AxisLabelOptionsProperty.builder()
                .applyTo(AxisLabelReferenceOptionsProperty.builder()
                        .column(ColumnIdentifierProperty.builder()
                                .columnName("columnName")

                                // the properties below are optional
                                .dataSetIdentifier("dataSetIdentifier")
                                .topicIdentifier("topicIdentifier")
                                .build())
                        .fieldId("fieldId")
                        .build())
                .customLabel("customLabel")
                .fontConfiguration(FontConfigurationProperty.builder()
                        .fontColor("fontColor")
                        .fontDecoration("fontDecoration")
                        .fontFamily("fontFamily")
                        .fontSize(FontSizeProperty.builder()
                                .absolute("absolute")
                                .relative("relative")
                                .build())
                        .fontStyle("fontStyle")
                        .fontWeight(FontWeightProperty.builder()
                                .name("name")
                                .build())
                        .build())
                .build()))
        .sortIconVisibility("sortIconVisibility")
        .visibility("visibility")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var chartAxisLabelOptionsProperty = new ChartAxisLabelOptionsProperty {
    AxisLabelOptions = new [] { new AxisLabelOptionsProperty {
        ApplyTo = new AxisLabelReferenceOptionsProperty {
            Column = new ColumnIdentifierProperty {
                ColumnName = "columnName",

                // the properties below are optional
                DataSetIdentifier = "dataSetIdentifier",
                TopicIdentifier = "topicIdentifier"
            },
            FieldId = "fieldId"
        },
        CustomLabel = "customLabel",
        FontConfiguration = new FontConfigurationProperty {
            FontColor = "fontColor",
            FontDecoration = "fontDecoration",
            FontFamily = "fontFamily",
            FontSize = new FontSizeProperty {
                Absolute = "absolute",
                Relative = "relative"
            },
            FontStyle = "fontStyle",
            FontWeight = new FontWeightProperty {
                Name = "name"
            }
        }
    } },
    SortIconVisibility = "sortIconVisibility",
    Visibility = "visibility"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

chartAxisLabelOptionsProperty := &ChartAxisLabelOptionsProperty{
	AxisLabelOptions: []interface{}{
		&AxisLabelOptionsProperty{
			ApplyTo: &AxisLabelReferenceOptionsProperty{
				Column: &ColumnIdentifierProperty{
					ColumnName: jsii.String("columnName"),

					// the properties below are optional
					DataSetIdentifier: jsii.String("dataSetIdentifier"),
					TopicIdentifier: jsii.String("topicIdentifier"),
				},
				FieldId: jsii.String("fieldId"),
			},
			CustomLabel: jsii.String("customLabel"),
			FontConfiguration: &FontConfigurationProperty{
				FontColor: jsii.String("fontColor"),
				FontDecoration: jsii.String("fontDecoration"),
				FontFamily: jsii.String("fontFamily"),
				FontSize: &FontSizeProperty{
					Absolute: jsii.String("absolute"),
					Relative: jsii.String("relative"),
				},
				FontStyle: jsii.String("fontStyle"),
				FontWeight: &FontWeightProperty{
					Name: jsii.String("name"),
				},
			},
		},
	},
	SortIconVisibility: jsii.String("sortIconVisibility"),
	Visibility: jsii.String("visibility"),
}
```

## Properties

- `axisLabelOptions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDashboard.AxisLabelOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDashboard.AxisLabelOptionsProperty.html)[] — The label options for a chart axis.

- `sortIconVisibility`: string — The visibility configuration of the sort icon on a chart's axis label.

- `visibility`: string — The visibility of an axis label on a chart. Choose one of the following options:.

  - `VISIBLE` : Shows the axis.
  - `HIDDEN` : Hides the axis.
