# AxisScale

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

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

```rust
struct AxisScale
```



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

## Members

- [`min`](#struct_field-min)
- [`max`](#struct_field-max)
- [`pixel_start`](#struct_field-pixel_start)
- [`pixel_end`](#struct_field-pixel_end)
- [`logarithmic_base`](#struct_field-logarithmic_base)
- [`new`](#function-new)
- [`to_pixels`](#function-to_pixels)
- [`to_chart_values`](#function-to_chart_values)
- [`ticks`](#function-ticks)
- [`tick_with_metrics`](#function-tick_with_metrics)
- [`ticks_with_metrics`](#function-ticks_with_metrics)

<a id="struct_field-min"></a>

### min

```rust
min: f64
```



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

<a id="struct_field-max"></a>

### max

```rust
max: f64
```



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

<a id="struct_field-pixel_start"></a>

### pixel_start

```rust
pixel_start: f64
```



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

<a id="struct_field-pixel_end"></a>

### pixel_end

```rust
pixel_end: f64
```



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

<a id="struct_field-logarithmic_base"></a>

### logarithmic_base

```rust
logarithmic_base: Option<f64>
```



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

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

### new

```rust
fn new(axis: &Axis, min: f64, max: f64, pixel_start: f64, pixel_end: f64) -> Result<Self, ChartError>
```



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

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

### to_pixels

```rust
fn to_pixels(self: Self, value: f64) -> f64
```



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

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

### to_chart_values

```rust
fn to_chart_values(self: Self, pixel: f64) -> f64
```



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

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

### ticks

```rust
fn ticks(self: Self, axis: &Axis, pixel_length: f64) -> Vec<f64>
```



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

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

### tick_with_metrics

```rust
fn tick_with_metrics(self: Self, axis: &Axis, size: Size, orientation: AxisOrientation, labels: Size) -> AxisTick
```

Source tick calculation using actual native font measurements.

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

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

### ticks_with_metrics

```rust
fn ticks_with_metrics(self: Self, axis: &Axis, size: Size, orientation: AxisOrientation, labels: Size) -> Vec<f64>
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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