# SiNChartGaugeComponent documentation

**Kind:** component

**Selector:** `si-nchart-gauge`

```
import { SiNChartGaugeComponent } from '@siemens/native-charts-ng/gauge';
```

```
component SiNChartGaugeComponent implements OnInit, OnChanges
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [axisLabelFormatter](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L163-L163>) | `((val: number) => string) \| undefined` |  | Custom formatter for axis labels. Takes precedence when specified, i.e. number of decimals needs to be set by the user using this formatter. |
| [axisNumberOfDecimals](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L157-L157>) | `number` | `0` | Number of decimals on the axis. Possible values are from 0 to 100. |
| [endAngle](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L97-L97>) | `number` | `90` | End angle in degrees |
| [legendPosition](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L191-L191>) | `"row" \| "column"` | `'row'` | Legend position:<br><br>• `column`: chart and legend form a column, i.e. the legend is below the chart. The chart size is driven by the available width.<br><br>• `row`: chart and legend form a row, i.e. the legend is besides the chart. The The chart size is driven by the available height. |
| [markerValue](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L133-L133>) | `number \| undefined` |  | Optional value displayed as a marker bar across the value arc. |
| [max](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L110-L110>) | `number` | `100` | Max value, can be negative |
| [maxNumberOfDecimals](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L151-L151>) | `number` | `2` | Max number of decimals. Possible values are from 0 to 100. |
| [min](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L104-L104>) | `number` | `-100` | Min value, can be negative |
| [minNumberOfDecimals](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L145-L145>) | `number` | `0` | Min number of decimals. Possible values are from 0 to 100. |
| [mode](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L117-L117>) | `"sum" \| "single"` | `'sum'` | Display mode: `sum` to sum up multiple series or `single` for a single value with optional segmented display. |
| [segments](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L129-L129>) | `GaugeSegment[]` | `[]` | Colored segments. |
| [series](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L123-L123>) | `GaugeSeries[]` | `[]` | The series for the chart. |
| [showLegend](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L181-L181>) | `boolean` | `true` | Whether to show the legend |
| [showRangeLabelsOutside](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L197-L197>) | `boolean` | `false` | Whether to show range start/end labels on the outside of the ring |
| [showTicks](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L175-L175>) | `boolean` | `true` | Whether to show ticks |
| [startAngle](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L91-L91>) | `number` | `-90` | Start angle in degrees |
| [unit](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L139-L139>) | `string` | `''` | Unit |
| [valueFormatter](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L169-L169>) | `((val: number) => string) \| undefined` |  | Custom formatter for value. Takes precedence when specified, i.e. number of decimals needs to be set by the user using this formatter. |

### Types Documentation

### [GaugeSegment](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L45-L50>)

**Kind:** interface

```
import type { GaugeSegment } from '@siemens/native-charts-ng/gauge';
```

One segment of the gauge chart. The first segment starts at the `min` value of the gauge chart and ends at `endValue`.

```
interface GaugeSegment
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [colorToken](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L47-L47>) | `string` | color token for this segment. |
| [endValue](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L49-L49>) | `number` | end value for this segment, exclusive except for last segment where it's inclusive |

### [GaugeSeries](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L28-L39>)

**Kind:** interface

```
import type { GaugeSeries } from '@siemens/native-charts-ng/gauge';
```

One series of the gauge chart.

```
interface GaugeSeries
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [colorToken](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L32-L32>) | `string` | color token |
| [description](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L36-L36>) (optional) | `string` | Optional description line in legend |
| [id](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L38-L38>) (optional) | `string` | ID exposed as `data-id` |
| [name](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L34-L34>) | `string` | name displayed in legend |
| [value](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/gauge/si-nchart-gauge.component.ts#L30-L30>) | `number` | value |
