endstone.metrics.charts.drilldown_pie

Classes

NameDescription
DrilldownPie

classDrilldownPie

Bases: CustomChart

DrilldownPie(chart_id: str, get_values: Callable[[], Dict[str, Dict[str, int]] | None])

Parameters

NameTypeDescriptionDefault
chart_idstr

The id of the chart.

required
get_valuesCallable[[], Dict[str, 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