Skip to content

FieldConfig🔗

Definition🔗

class FieldConfig:
    show: typing.Optional[xychart.XYShowMode]
    point_size: typing.Optional[xychart.XychartFieldConfigPointSize]
    point_shape: typing.Optional[xychart.PointShape]
    point_stroke_width: typing.Optional[int]
    fill_opacity: typing.Optional[int]
    line_width: typing.Optional[int]
    hide_from: typing.Optional[common.HideSeriesConfig]
    axis_placement: typing.Optional[common.AxisPlacement]
    axis_color_mode: typing.Optional[common.AxisColorMode]
    axis_label: typing.Optional[str]
    axis_width: typing.Optional[float]
    axis_soft_min: typing.Optional[float]
    axis_soft_max: typing.Optional[float]
    axis_grid_show: typing.Optional[bool]
    scale_distribution: typing.Optional[common.ScaleDistributionConfig]
    axis_centered_zero: typing.Optional[bool]
    line_style: typing.Optional[common.LineStyle]
    axis_border_show: typing.Optional[bool]

Methods🔗

to_json🔗

Converts this object into a representation that can easily be encoded to JSON.

def to_json() -> dict[str, object]

from_json🔗

Builds this object from a JSON-decoded dict.

@classmethod
def from_json(data: dict[str, typing.Any]) -> typing.Self