Skip to content

Options🔗

Definition🔗

class Options:
    # Show timeline values on chart
    show_value: common.VisibilityMode
    # Controls the row height
    row_height: float
    # Merge equal consecutive values
    merge_values: typing.Optional[bool]
    # Controls value alignment on the timelines
    align_value: typing.Optional[common.TimelineValueAlignment]
    legend: common.VizLegendOptions
    tooltip: common.VizTooltipOptions
    timezone: typing.Optional[list[common.TimeZone]]
    # Enables pagination when > 0
    per_page: typing.Optional[float]

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