endstone.metrics.charts.custom_chart
Classes
| Name | Description |
|---|---|
CustomChart | Represents a custom chart. |
classCustomChart
Bases: ABC
CustomChart(chart_id: str)Represents a custom chart.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
chart_id | str | The id of the chart. | required |
Raises
| Type | Description |
|---|---|
ValueError | If chart_id is None or empty. |
Methods
| Name | Description |
|---|---|
get_chart_data | Gets the data for the chart. |
Attributes
| Name | Type | Description |
|---|---|---|
chart_id |
attrchart_id
chart_idmethget_chart_dataabstractmethod
get_chart_data() -> dict | NoneGets the data for the chart.
Returns
| Name | Type | Description |
|---|---|---|
dict | dict | None | A dictionary with the chart data. |
Raises
| Type | Description |
|---|---|
Exception | If there is an error getting the chart data. |