Skip to main content

Module charts

Module charts 

Source
Expand description

Plotters-backed throughput and CPU chart rendering.

Structsยง

ChartConfig ๐Ÿ”’

Constantsยง

ACCENT ๐Ÿ”’
BG ๐Ÿ”’
DATA_POINTS ๐Ÿ”’
GRID ๐Ÿ”’
GRID_AXIS_OPACITY ๐Ÿ”’
GRID_BOLD_OPACITY ๐Ÿ”’
GRID_LIGHT ๐Ÿ”’
GRID_LIGHT_OPACITY ๐Ÿ”’
LABEL_COLOR ๐Ÿ”’
LABEL_FONT_SIZE ๐Ÿ”’
LINE_STROKE_WIDTH ๐Ÿ”’
MARGIN_BOTTOM ๐Ÿ”’
MARGIN_LEFT ๐Ÿ”’
MARGIN_RIGHT ๐Ÿ”’
MARGIN_TOP ๐Ÿ”’
RESOURCE_FILL_OPACITY ๐Ÿ”’
THROUGHPUT_FILL_OPACITY ๐Ÿ”’
THROUGHPUT_Y_HEADROOM ๐Ÿ”’
Y_LABEL_AREA_SIZE ๐Ÿ”’
Y_LABEL_COUNT ๐Ÿ”’

Functionsยง

format_throughput_label ๐Ÿ”’
render_chart ๐Ÿ”’
render_resource_chart ๐Ÿ”’
Renders a CPU usage line chart as a Slint image.
render_throughput_chart ๐Ÿ”’
Renders a throughput-over-time line chart as a Slint image.
series_points ๐Ÿ”’
throughput_y_max ๐Ÿ”’