endstone.metrics.charts.single_line_chart

Classes

NameDescription
SingleLineChart

classSingleLineChart

Bases: CustomChart

SingleLineChart(chart_id: str, get_value: Callable[[], int])

Parameters

NameTypeDescriptionDefault
chart_idstr

The id of the chart.

required
get_valueCallable[[], int]

The callable which is used to request the chart data.

required

Methods

NameDescription
get_chart_data

Gets the data for the simple pie chart.

Attributes

NameTypeDescription
get_value

attrget_value

get_value

methget_chart_data

get_chart_data() -> dict | None

Gets the data for the simple pie chart.

Returns

TypeDescription
dict | None

dict | None: A dictionary with the chart data.

On this page