API reference
Preparing search index…

ImGui.PlotHistogramEx

  • Display numeric samples as vertical bars.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    values
    Float32Array

    Float32Array of plot samples, read from the supplied storage; values_count and stride must stay within that storage. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    values_count
    number

    Number of plot samples to read.

    values_offset
    number = 0

    Starting sample index in the circular sample sequence, not a byte offset.

    overlay_text
    null | string | Uint8Array = null

    Optional text drawn over the progress bar or plot; null uses the widget default.

    scale_min
    number = 3.4028234663852886e+38

    Lower/upper plot scale; 3.4028234663852886e+38 requests automatic scaling for that bound.

    scale_max
    number = 3.4028234663852886e+38

    Lower/upper plot scale; 3.4028234663852886e+38 requests automatic scaling for that bound.

    graph_size

    Widget width and height in pixels; zero uses native automatic sizing and negative width reserves space from the available right edge.

    stride
    number

    Byte distance between consecutive plot samples, normally Float32Array.BYTES_PER_ELEMENT = 4.

    Returns

    void
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0