Base class for RadzenChart scales.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public abstract class ScaleBaseGets or sets the input.
public ScaleRange Input { get; set; }
| Type | Description |
|---|---|
| ScaleRange | Gets or sets the input. |
Gets or sets the output.
public ScaleRange Output { get; set; }
| Type | Description |
|---|---|
| ScaleRange | Gets or sets the output. |
Gets the size of the output.
public double OutputSize { get; }
| Type | Description |
|---|---|
| double | Gets the size of the output. |
Gets or sets the padding.
public double Padding { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the padding. |
Gets or sets a value indicating whether this ScaleBase is round.
public bool Round { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this ScaleBase is round. |
Gets or sets the step.
public object Step { get; set; }
| Type | Description |
|---|---|
| object | Gets or sets the step. |
Composes the specified selector.
public virtual Func<TItem, double> Compose(Func<TItem, double> selector)
| Type | Name | Description |
|---|---|---|
| Func<TItem, double> | selector | The selector. |
| Type | Description |
|---|---|
| Func<TItem, double> |
Fits the scale within the distance.
public virtual void Fit(int distance)
| Type | Name | Description |
|---|---|---|
| int | distance | The distance. |
Formats the tick value.
public abstract string FormatTick(string format, object value)
| Type | Name | Description |
|---|---|---|
| string | format | The format. |
| object | value | The value. |
| Type | Description |
|---|---|
| string | System.String. |
Determines whether the specified scale is equal to the current one.
public bool IsEqualTo(ScaleBase scale)
| Type | Name | Description |
|---|---|---|
| ScaleBase | scale | The scale. |
| Type | Description |
|---|---|
| bool | true if the scales are equal; otherwise, false. |
Returns a "nice" number (closest power of 10).
public double NiceNumber(double range, bool round)
| Type | Name | Description |
|---|---|---|
| double | range | The range. |
| bool | round | Wether to round. |
| Type | Description |
|---|---|
| double |
Resizes the scale to the specified values.
public virtual void Resize(object min, object max)
| Type | Name | Description |
|---|---|---|
| object | min | The minimum. |
| object | max | The maximum. |
Converts the specified value to a value from this scale with optional padding.
public abstract double Scale(double value, bool padding)
| Type | Name | Description |
|---|---|---|
| double | value | The value. |
| bool | padding | Whether to apply padding. |
| Type | Description |
|---|---|
| double |
Calculates the number of ticks with the specified distance.
public abstract ValueTuple<double, double, double> Ticks(int distance)
| Type | Name | Description |
|---|---|---|
| int | distance | The distance. |
| Type | Description |
|---|---|
| ValueTuple<double, double, double> |
Returns a value from the scale.
public abstract object Value(double value)
| Type | Name | Description |
|---|---|---|
| double | value | The value. |
| Type | Description |
|---|---|
| object |