How was this graph created with GTK?

Hello. I’ve seen similar charts in applications written with the gtk library. One of these programs is GNOME Usage. I want to know how this chart was made? Is it created with a specific library?

Yo @behDev! I can not see your attached image but I presume you’re referring to the graphs under the “Resources” page of System Monitor. They’re done by the application itself. AFAIK there is no mature graphing library for GTK. Here’s a link to the relevant code in g-s-m. Note, though, that it is GTK3 and not GTK4 which has changed slightly the way custom drawing is achieved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.