# Labelers

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/labelers/struct-labelers/

**struct** · [`ferroui-livecharts`](/docs/0.5.0/api/ferroui-livecharts/) · v0.5.0

```rust
struct Labelers
```

The labelers of the source (`Labelers`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/labelers.rs#L83)

## Members

- [`six_representative_digits`](#function-six_representative_digits)
- [`format_currency`](#function-format_currency)
- [`currency`](#function-currency)
- [`build_named_labeler`](#function-build_named_labeler)

<a id="function-six_representative_digits"></a>

### six_representative_digits

```rust
fn six_representative_digits(value: f64) -> String
```

`SixRepresentativeDigits` (the source's default labeler, `Log10_6`): up to seven decimals,
a value of a million or more in millions (`M`), a value of a millionth or less in
millionths (`µ`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/labelers.rs#L89)

<a id="function-format_currency"></a>

### format_currency

```rust
fn format_currency(value: f64, thousands: &str, decimals: &str, symbol: &str) -> String
```

`FormatCurrency`: the value in quadrillions (`Q`), trillions (`T`), billions (`B`) or
millions (`M`) from a million on, with the symbol, digit groups of three and up to two
decimals (`{symbol}#,###,##0.## {unit}`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/labelers.rs#L103)

<a id="function-currency"></a>

### currency

```rust
fn currency(value: f64) -> String
```

`Currency`: `format_currency` with `,`, `.` and the currency symbol
of the current culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/labelers.rs#L132)

<a id="function-build_named_labeler"></a>

### build_named_labeler

```rust
fn build_named_labeler(labels: Vec<String>) -> Labeler
```

`BuildNamedLabeler`: the label at the index of a value (its integer part); an index out of
range has an empty label.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/labelers.rs#L139)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
