Skip to content

Options🔗

Definition🔗

class Options:
    # Controls if the heatmap should be calculated from data
    calculate: typing.Optional[bool]
    # Calculation options for the heatmap
    calculation: typing.Optional[common.HeatmapCalculationOptions]
    # Controls the color options
    color: heatmap.HeatmapColorOptions
    # Filters values between a given range
    filter_values: typing.Optional[heatmap.FilterValueRange]
    # Controls tick alignment and value name when not calculating from data
    rows_frame: typing.Optional[heatmap.RowsHeatmapOptions]
    # | *{
    #   layout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed
    # }
    # Controls the display of the value in the cell
    show_value: common.VisibilityMode
    # Controls gap between cells
    cell_gap: typing.Optional[int]
    # Controls cell radius
    cell_radius: typing.Optional[float]
    # Controls cell value unit
    cell_values: typing.Optional[heatmap.CellValues]
    # Controls yAxis placement
    y_axis: heatmap.YAxisConfig
    # | *{
    #   axisPlacement: ui.AxisPlacement & "left" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed
    # }
    # Controls legend options
    legend: heatmap.HeatmapLegend
    # Controls tooltip options
    tooltip: heatmap.HeatmapTooltip
    # Controls exemplar options
    exemplars: heatmap.ExemplarConfig
    # Controls which axis to allow selection on
    selection_mode: typing.Optional[heatmap.HeatmapSelectionMode]

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