endstone.metrics.charts.advanced_pie

Classes

NameDescription
AdvancedPie

classAdvancedPie

Bases: CustomChart

AdvancedPie(chart_id: str, get_values: Callable[[], dict[str, int] | None])

Parameters

NameTypeDescriptionDefault
chart_idstr

The id of the chart.

required
get_valuesCallable[[], dict[str, int] | None]

The callable which is used to request the chart data.

required

Methods

NameDescription
get_chart_data

Gets the data for the advanced pie chart.

Attributes

NameTypeDescription
get_values

attrget_values

get_values

methget_chart_data

get_chart_data() -> dict | None

Gets the data for the advanced pie chart.

Returns

TypeDescription
dict | None

dict | None: A dictionary with the chart data.

On this page