GtkDiagram is a widget for Gtk3 which is written in vala.
It can draw bar charts and line charts.
For easy GUI creation it is integrated into glade.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Strasser 9c0ea0f44e - cmake improfements 6 months ago
cmake - cmake improfements 6 months ago
src - first release 6 months ago
CMakeLists.txt - cmake improfements 6 months ago
LICENSE Initial commit 6 months ago
README.md „README.md“ ändern 6 months ago
changelog - first release 6 months ago
gtkdiagram.pc.in - cmake improfements 6 months ago
gtkdiagram.xml - first release 6 months ago

README.md

libgtkdiagram

GtkDiagram is a widget for Gtk3 which is written in vala.

It can draw bar charts and line charts.

For easy GUI creation it is integrated into glade.

Vala example diagram.vala:

using Gtk;
using diagram;

int main (string[] args) {
    Gtk.init (ref args);

    var window = new Window ();
    window.title = "First Diagram";
    window.set_default_size (350, 70);
    window.destroy.connect (Gtk.main_quit);

    var diagram = new Diagram();
    diagram.werte = {20,80,10,50};
    diagram.type = 1;
    window.add (diagram);
    window.show_all ();

    Gtk.main ();
    return 0;
	
}

Compile and Run

valac --pkg gtk+-3.0 --pkg gtkdiagram diagram.vala
./diagram.vala

Packages for some distributions can be downloaded at http://software.opensuse.org/package/libgtkdiagram .