IAxis interface

Represents the parameters for an axis on a chart.

Properties

formatter

A function that formats the labels for the data points on the axis.

labelValues

An array of reference points to be represented as ticks on the axis.

Property Details

formatter

A function that formats the labels for the data points on the axis.

formatter?: (value: T) => string;

Property Value

(value: T) => string

Remarks

If no formatter is provided, a default formatter will be used.

labelValues

An array of reference points to be represented as ticks on the axis.

labelValues?: T[];

Property Value

T[]

Remarks

The number of data points is limited to ensure optimal display quality. The limit depends on the size of the card: - Large Card: 2 to 6 data points for the x-axis - Medium Card: 2 to 3 data points for the x-axis - 2 to 4 data points for the y-axis