Skip to main content
A newer version of this page is available.

DateTimeAxisX Class

The arguments axis that manages representation of series with DateTimeSeriesData or FinancialSeriesData data.

Declaration

public class DateTimeAxisX
extends AxisX

Remarks

The date-time x-axis parameters are shown in the following image:

Date-time x-axis

Refer to the Axes guide for more information on common axis properties.

Inherited Members

java.lang.Object.equals(java.lang.Object)(Object)
java.lang.Object.hashCode()()
java.lang.Object.notify()()
java.lang.Object.notifyAll()()
java.lang.Object.toString()()
java.lang.Object.wait()()
java.lang.Object.wait(long)(long)
java.lang.Object.wait(long, int)(long,int)

DateTimeAxisX()

Initializes a new DateTimeAxisX class instance with default parameters.

Declaration

public DateTimeAxisX()

Methods

addConstantLine(DateTimeConstantLine) Method

Adds the specified constant line to the axis.

Declaration

public void addConstantLine(DateTimeConstantLine line)

Parameters

Name Type Description
line DateTimeConstantLine

The DateTimeConstantLine object to be added.

addStrip(DateTimeStrip) Method

Adds the specified strip to the axis.

Declaration

public void addStrip(DateTimeStrip strip)

Parameters

Name Type Description
strip DateTimeStrip

The DateTimeStrip object to be added.

getAggregationType() Method

Returns the aggregation function type.

Declaration

public AggregationType getAggregationType()

Returns

Type Description
AggregationType

The AggregationType enumeration value that specifies the aggregation function used to aggregate data.

Remarks

If series data provides more detailed data than measure unit, for example, data points are by hours and the measurement unit is a day, data is aggregated using function specified by this property.

getGridAlignment() Method

Return the measurement unit by which the chart grid is aligned.

Declaration

public DateTimeMeasureUnit getGridAlignment()

Returns

Type Description
DateTimeMeasureUnit

The DateTimeMeasureUnit enumeration value that specifies measurement unit by which the grid is aligned.

getGridOffset() Method

Returns the first major tickmark’s and gridline’s initial offset from the range’s minimum value.

Declaration

public Integer getGridOffset()

Returns

Type Description
Integer

The first major tickmark’s and gridline’s initial offset, in measurement units.

getGridSpacing() Method

Returns the distance between two major tickmarks and gridlines.

Declaration

public Integer getGridSpacing()

Returns

Type Description
Integer

The distance between two major tickmarks and gridlines, in grid alignment units.

getMeasureUnit() Method

Returns the axis’s measurement unit.

Declaration

public DateTimeMeasureUnit getMeasureUnit()

Returns

Type Description
DateTimeMeasureUnit

The DateTimeMeasureUnit enumeration value that specifies the axis’s measuring unit.

Remarks

Note that measurement unit specifies the maximum detail level that the chart displays. If your data is more detailed, it is aggregated using the aggregation function the aggregationType property specifies. For example, data points are by hours and the measurement unit is a day, data is aggregated by day.

getRange() Method

Returns the settings that specify axis’s coordinate ranges.

Declaration

public DateTimeRange getRange()

Returns

Type Description
DateTimeRange

The DateTimeRange object that specifies the range settings.

removeConstantLine(DateTimeConstantLine) Method

Removes the specified constant line from the axis.

Declaration

public void removeConstantLine(DateTimeConstantLine line)

Parameters

Name Type Description
line DateTimeConstantLine

The DateTimeConstantLine object to be removed.

removeStrip(DateTimeStrip) Method

Removes the strip from the axis.

Declaration

public void removeStrip(DateTimeStrip strip)

Parameters

Name Type Description
strip DateTimeStrip

The DateTimeStrip object to be removed.

setAggregationType(AggregationType) Method

Specifies the aggregation function type.

Declaration

public void setAggregationType(AggregationType value)

Parameters

Name Type Description
value AggregationType

The AggregationType enumeration value that specifies the aggregation function used to aggregate data.

Remarks

If series data provides more detailed data than measure unit, for example, data points are by hours and the measurement unit is a day, data is aggregated using function specified by this property.

setGridAlignment(DateTimeMeasureUnit) Method

Specifies the measurement unit by which grid is aligned.

Declaration

public void setGridAlignment(DateTimeMeasureUnit value)

Parameters

Name Type Description
value DateTimeMeasureUnit

The DateTimeMeasureUnit enumeration value that specifies the measurement unit by which the grid is aligned.

setGridOffset(Integer) Method

Specifies the first major tickmark’s and gridline’s initial offset from the range’s minimum value.

Declaration

public void setGridOffset(Integer value)

Parameters

Name Type Description
value Integer

The first major tickmark’s and gridline’s initial offset, in measurement units.

setGridSpacing(Integer) Method

Specifies the distance between two major tickmarks and gridlines.

Declaration

public void setGridSpacing(Integer value)

Parameters

Name Type Description
value Integer

The distance between two major tickmarks and gridlines, in grid alignment units.

setMeasureUnit(DateTimeMeasureUnit) Method

Specifies the axis’s measurement unit.

Declaration

public void setMeasureUnit(DateTimeMeasureUnit value)

Parameters

Name Type Description
value DateTimeMeasureUnit

The DateTimeMeasureUnit enumeration value that specifies the axis’s measuring unit.

Remarks

Note that measurement unit specifies the maximum detail level that the chart displays. If your data is more detailed, it is aggregated using the aggregation function the aggregationType property specifies. For example, data points are by hours and the measurement unit is a day, data is aggregated by day.

setRange(DateTimeRange) Method

Specifies the settings that specify ranges of the axis coordinates.

Declaration

public void setRange(DateTimeRange range)

Parameters

Name Type Description
range DateTimeRange

The DateTimeRange object that specifies the range settings.