Class CategoryDateAxis
Provides a Linear, Category Date Axis, capable of rendering Date ticks on the X-Axis of a com.scichart.charting.visuals.SciChartSurface See Also: CategoryAxisBase, DateAxis, CategoryDateAxis, IAxis, NumericAxis, AxisBase
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class CategoryDateAxis extends CategoryAxisBase implements ICategoryDateAxis
Constructors
CategoryDateAxis(Context context)
Creates a new instance of CategoryDateAxis class
Declaration
public CategoryDateAxis(Context context)
Parameters
Type | Name | Description |
---|---|---|
android.content.Context | context | The context of application |
CategoryDateAxis(IRange<Double> defaultNonZeroRange, IAxisModifierSurface axisModifierSurface)
Creates a new instance of CategoryDateAxis class
Declaration
protected CategoryDateAxis(IRange<Double> defaultNonZeroRange, IAxisModifierSurface axisModifierSurface)
Parameters
Type | Name | Description |
---|---|---|
IRange<Double> | defaultNonZeroRange | The default non zero IRange instance for this axis |
IAxisModifierSurface | axisModifierSurface | The IAxisModifierSurface for this this axis |
Fields
barTimeFrameProperty
Declaration
protected final SmartPropertyDouble barTimeFrameProperty
Field Value
Type | Description |
---|---|
SmartPropertyDouble |
Methods
getBarTimeFrame()
Gets the Bar Time Frame in seconds. This is the number of seconds that each data-point represents on the CategoryDateAxis and is required for proper rendering. A default value of -1 allows the CategoryDateAxis to estimate the time frame
Declaration
public double getBarTimeFrame()
Returns
Type | Description |
---|---|
double |
setBarTimeFrame(double barTimeFrame)
Sets the Bar Time Frame in seconds. This is the number of seconds that each data-point represents on the CategoryDateAxis and is required for proper rendering. A default value of -1 allows the CategoryDateAxis to estimate the time frame
Declaration
public void setBarTimeFrame(double barTimeFrame)
Parameters
Type | Name | Description |
---|---|---|
double | barTimeFrame | The Bar Time Frame in seconds |
transformCoordinateToDate(float pixelCoordinate)
Transforms a pixel coordinate to the corresponding Date value.
Declaration
public Date transformCoordinateToDate(float pixelCoordinate)
Parameters
Type | Name | Description |
---|---|---|
float | pixelCoordinate |
Returns
Type | Description |
---|---|
Date |
transformDateToCoordinate(Date value)
Transforms a date value to the pixel coordinate.
Declaration
public float transformDateToCoordinate(Date value)
Parameters
Type | Name | Description |
---|---|---|
Date | value |
Returns
Type | Description |
---|---|
float |