A single-file live-updating graph widget written in C that compiles against GTK 2, GTK 3 and GTK 4 from the same source.
livegraph.png— captured from the running demo (main.c).
- Support live data dynamic range changes - autoscales and auto time axis.
- Supports dark/light theme with auto visible color setup.
- Large magnitudes are shown with a compact suffix: K (1e3), M (1e6), G (1e9), T (1e12)
- A flat/constant signal is centered.
- The X axis shows how old each sample is, in seconds.
make # makes all 3 versions GTK2,GTK3,GTK4
make gtk2 # GTK2
make gtk3 # GTK3
make gtk4 # GTK4
./livegraph-gtk3
./livegraph-gtk4
./livegraph-gtk2GPL2+
