ChartAxis
Configures chart axis.
Inherits: BaseControl
Properties
label_size- The maximum space for each label in labels.label_spacing- The spacing/interval between labels.labels- The list of ChartAxisLabel objects to set custom axis labels for only specific values.show_labels- Whether to display the labels along the axis.show_max- Whether to display a label for the maximum value independent of the sampling interval.show_min- Whether to display a label for the minimum value independent of the sampling interval.title- AControlto display as axis title.title_size- The size of title area.
Properties
label_sizeclass-attributeinstance-attribute
label_size: Number = 22The maximum space for each label in labels.
Each label will stretch to fit this space.
label_spacingclass-attributeinstance-attribute
label_spacing: Optional[Number] = NoneThe spacing/interval between labels.
If a value is not set, a suitable value will be automatically calculated and used.
labelsclass-attributeinstance-attribute
labels: list[ChartAxisLabel] = field(default_factory=list)The list of ChartAxisLabel objects to set custom axis labels for only specific values.
show_labelsclass-attributeinstance-attribute
show_labels: bool = TrueWhether to display the labels along the axis.
If labels is empty then automatic labels are displayed.
show_maxclass-attributeinstance-attribute
show_max: bool = TrueWhether to display a label for the maximum value independent of the sampling interval.
show_minclass-attributeinstance-attribute
show_min: bool = TrueWhether to display a label for the minimum value independent of the sampling interval.