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. |
label |
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 and dataVisualizationKind:
For a Line Chart: - Large: 2 to 6 data points for the x-axis - Medium: 2 to 3 data points for the x-axis - 2 to 4 data points for the y-axis For a Bar Chart: - Large: upto 5 data points for the x-axis - Medium: upto 3 data points for the x-axis