Class TimeSpanAxis
Class implementation for TimeSpanAxis
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class TimeSpanAxis : RangeAxisBase, ICloneable, IRangeAxis
Constructors
TimeSpanAxis()
Declaration
public TimeSpanAxis()
Fields
IntervalProperty
The DependencyProperty for Interval property.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MaximumProperty
The DependencyProperty for Maximum property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MinimumProperty
The DependencyProperty for Minimum property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
Interval
Gets or sets a value that determines the interval between labels. Its nullable. If this property is not set, interval will be calculated automatically.
Declaration
public TimeSpan? Interval { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.TimeSpan> |
Maximum
Gets or sets the maximum value for the axis range. This is nullable property.
Declaration
public TimeSpan? Maximum { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.TimeSpan> |
Remarks
If we didn't set the maximum value, it will be calculate from the underlying collection.
Minimum
Gets or sets the minimum value for the timespan axis range. This is nullable property.
Declaration
public TimeSpan? Minimum { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.TimeSpan> |
Remarks
If we didn't set the minimum value, it will be calculate from the underlying collection.
Methods
ApplyRangePadding(DoubleRange, Double)
Apply padding based on interval
Declaration
protected override DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Double | interval |
Returns
| Type |
|---|
| DoubleRange |
Overrides
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval
Declaration
protected override double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
Overrides
CalculateActualRange()
Calculates actual range
Declaration
protected override DoubleRange CalculateActualRange()
Returns
| Type |
|---|
| DoubleRange |
Overrides
CalculateVisibleRange(Size)
Calculates the visible range.
Declaration
protected override void CalculateVisibleRange(Size avalableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | avalableSize |
Overrides
CloneAxis(DependencyObject)
Creates a copy of the ChartAxis.
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj |
Returns
| Type | Description |
|---|---|
| System.Windows.DependencyObject | A cloned ChartAxis instance with properties copied from the current instance. |
Overrides
GenerateVisibleLabels()
Method implementation for Generate Labels in ChartAxis
Declaration
protected override void GenerateVisibleLabels()
Overrides
GetLabelContent(Double)
Return Object from the given double value
Declaration
public override object GetLabelContent(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position |
Returns
| Type |
|---|
| System.Object |
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when Interval property changed
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e |
OnMaximumChanged(DependencyPropertyChangedEventArgs)
Called when Maximum property changed
Declaration
protected virtual void OnMaximumChanged(DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args |
OnMinimumChanged(DependencyPropertyChangedEventArgs)
Method implementation for Minimum property changed
Declaration
protected virtual void OnMinimumChanged(DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args |