Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a bounded line plot from borrowed numeric samples without copying their buffer.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public void InnoEditor.ImGui.ImGuiWidget.Trend(string label, System.ReadOnlySpan<float> values, int offset = 0)

Parameter label: The visible plot title and stable item identifier in its current owner.

Parameter values: Finite samples borrowed only for this call; an empty span draws an empty plot.

Parameter offset: The first chronological sample in a circular buffer, or zero for empty input.

Exception T:System.ArgumentException: The label is empty or a sample is not finite.

Exception T:System.ArgumentOutOfRangeException: The offset is outside the supplied sample span.

Exception T:System.InvalidOperationException: No matching owner-thread drawing session is active.