Raxol.Terminal.Graphics.StreamingManager (Raxol v2.0.1)

View Source

Streaming chart management and state utilities extracted from DataVisualization. Handles streaming updates, scheduling, and chart state management.

Summary

Functions

Calculates performance statistics for the given state.

Cleans up expired charts from state.

Creates a chart state structure with common fields.

Creates initial state for the DataVisualization GenServer.

Initializes metrics for chart tracking.

Schedules streaming updates for charts.

Updates chart state with new data point.

Updates chart state with multiple data points.

Updates performance metrics after an operation.

Functions

calculate_performance_stats(state)

Calculates performance statistics for the given state.

cleanup_expired_charts(state)

Cleans up expired charts from state.

create_chart_state(chart_id, type, config, graphics_id)

Creates a chart state structure with common fields.

create_initial_state(opts)

Creates initial state for the DataVisualization GenServer.

handle_chart_creation(type, config, state, chart_creation_fn)

Handles common chart creation logic.

initialize_metrics()

Initializes metrics for chart tracking.

schedule_streaming_updates()

Schedules streaming updates for charts.

update_chart_with_data_point(chart_state, data_point)

Updates chart state with new data point.

update_chart_with_data_points(chart_state, data_points)

Updates chart state with multiple data points.

update_metrics(state, operation)

Updates performance metrics after an operation.