Skip to main content

ChartAxisX Class

The chart’s X-axis.

Declaration

export class ChartAxisX extends ChartAxis

Remarks

The ChartAxisX class represents an X-axis displayed in a chart dashboard item.

wdd-chart-axis

The ChartAxisX class provides various settings that allow you to specify the axis visibility (ChartAxis.visible) and title (ChartAxis.title).

Use the ChartItem.axisX property to access the ChartAxisX instance.

Use the ChartPane.primaryAxisY property to access the ChartAxisY instance that is the chart’s Y-axis.

Inheritance

constructor

Initializes a new instance of the ChartAxisX class.

Declaration

constructor(
    JSON?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

Parameters

Name Type Description
JSON any

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

dateTimeFormat Property

Specifies the date and time display format the chart axis data uses.

Declaration

dateTimeFormat: DevExpress.Dashboard.Model.DataItemDateTimeFormat

Property Value

Type Description
DataItemDateTimeFormat

A DataItemDateTimeFormat object that specifies a display format the chart axis data uses.

enableZooming Property

Specifies whether zooming is enabled for the current X-axis.

Declaration

enableZooming: ko.Observable<boolean>

Property Value

Type Description
Observable<boolean>

true, to enable zooming for the current X-axis; otherwise, false.

limitVisiblePoints Property

Specifies whether the number of visible points is limited for the current X-axis.

Declaration

limitVisiblePoints: ko.Observable<boolean>

Property Value

Type Description
Observable<boolean>

true, to limit the number of visible points; otherwise, false.

visiblePointsCount Property

Specifies the number of visible points displayed for the current X-axis.

Declaration

visiblePointsCount: ko.Observable<number>

Property Value

Type Description
Observable<number>

An integer value that specifies the number of visible points displayed for the current X-axis.

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.