A simple chart library for GTK4.
API documentation is available at: https://avojak.com/libsimplechart/simplechart-1/index.htm
var chart = new SimpleChart.PieChart () {
direction = SimpleChart.PieChart.Direction.CLOCKWISE,
data = data,
hole_ratio = 0.35,
spacing = 6
}var chart = new SimpleChart.BarChart () {
margin = 6,
padding = 2
};If using Meson, simply add the dependency after installation:
dependency('simplechart-1', version: '>= 1.0.0')Run meson build to configure the build environment:
meson build --prefix=/usrThis will create a build directory.
To build and install SimpleChart, use ninja:
ninja -C build installTo run tests:
ninja -C build testThere's also a Makefile if you're lazy like me and don't want to type those commands all the time.
Some features are demonstrated through a simple demo application. To run the demo after installation:
simplechart-1-demoThe additional requirements for building the documentation are:
- valadoc
To generate the valadoc documentation, pass the additional -Ddocumentation=true flag to Meson, and then run ninja as before.