endstone.metrics.charts.advanced_bar_chart

Classes

NameDescription
AdvancedBarChart

classAdvancedBarChart

Bases: CustomChart

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

Parameters

NameTypeDescriptionDefault
chart_idstr

The id of the chart.

required
get_valuesCallable[[], Dict[str, List[int]] | None]

The callable which is used to request the chart data.

required

Methods

NameDescription
get_chart_data

Gets the data for the advanced bar chart.

Attributes

NameTypeDescription
get_values

attrget_values

get_values

methget_chart_data

get_chart_data() -> dict | None

Gets the data for the advanced bar chart.

Returns

TypeDescription
dict | None

dict | None: A dictionary with the chart data.

On this page