Class TimeSpanAxis
Class implementation for TimeSpanAxis
Inheritance
System.Object
TimeSpanAxis
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class TimeSpanAxis : RangeAxisBase, ICloneable, IRangeAxis
Constructors
TimeSpanAxis()
Declaration
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> |
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> |
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
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
Overrides
CalculateActualRange()
Declaration
protected override DoubleRange CalculateActualRange()
Returns
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)
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
| Type |
Name |
Description |
| System.Windows.DependencyObject |
obj |
|
Returns
| Type |
| System.Windows.DependencyObject |
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
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 |
|
Implements