Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

avojak/libsimplechart

Repository files navigation

CI Lint GitHub GitHub release (latest SemVer) Documentation

SimpleChart

A simple chart library for GTK4.

API documentation is available at: https://avojak.com/libsimplechart/simplechart-1/index.htm

Features

Pie Charts

var chart = new SimpleChart.PieChart () {
    direction = SimpleChart.PieChart.Direction.CLOCKWISE,
    data = data,
    hole_ratio = 0.35,
    spacing = 6
}

Bar Charts

var chart = new SimpleChart.BarChart () {
    margin = 6,
    padding = 2
};

Example Usage

If using Meson, simply add the dependency after installation:

dependency('simplechart-1', version: '>= 1.0.0')

Building, Testing, and Installation

Run meson build to configure the build environment:

meson build --prefix=/usr

This will create a build directory.

To build and install SimpleChart, use ninja:

ninja -C build install

To run tests:

ninja -C build test

There's also a Makefile if you're lazy like me and don't want to type those commands all the time.

Demo

Some features are demonstrated through a simple demo application. To run the demo after installation:

simplechart-1-demo

Documentation

The 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.

About

Simple chart library built on GTK4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published