Skip to content

VizLegendOptions🔗

TODO docs

Definition🔗

type VizLegendOptions struct {
    DisplayMode common.LegendDisplayMode `json:"displayMode"`
    Placement common.LegendPlacement `json:"placement"`
    ShowLegend bool `json:"showLegend"`
    AsTable *bool `json:"asTable,omitempty"`
    IsVisible *bool `json:"isVisible,omitempty"`
    SortBy *string `json:"sortBy,omitempty"`
    SortDesc *bool `json:"sortDesc,omitempty"`
    Width *float64 `json:"width,omitempty"`
    Calcs []string `json:"calcs"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode VizLegendOptions from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (vizLegendOptions *VizLegendOptions) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two VizLegendOptions objects.

func (vizLegendOptions *VizLegendOptions) Equals(other VizLegendOptions) bool

Validate🔗

Validate checks all the validation constraints that may be defined on VizLegendOptions fields for violations and returns them.

func (vizLegendOptions *VizLegendOptions) Validate() error

See also🔗