PieChartLegendOptions🔗
Definition🔗
type PieChartLegendOptions struct {
Values []piechart.PieChartLegendValues `json:"values"`
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 PieChartLegendOptions
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, …
Equals🔗
Equals tests the equality of two PieChartLegendOptions
objects.
Validate🔗
Validate checks all the validation constraints that may be defined on PieChartLegendOptions
fields for violations and returns them.