From 34f6a1735561358cdd4c0c598c90f01a3b948fdc Mon Sep 17 00:00:00 2001 From: Laurent Callarec Date: Wed, 15 Apr 2020 14:39:04 +0200 Subject: [PATCH] Release 1.5.0 --- NEWS.md | 33 +++++++++++++++++++++++++++++++++ meson.build | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index f0593c9..d15928d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,36 @@ +# 1.5.0 + +## New feature + +* Configure legend font + +```vala +var chart = new LiveChart.Chart(config); +var legend = vhart.legend; + +legend.labels.font.size = 12; // uint8 In pixels +legend.labels.font.color = {1.0, 0.0, 0.0, 1.0}; // Gdk.RGBA +legend.labels.font.weight = Cairo.FontWeight.BOLD; // Cairo.FontWeight +legend.labels.font.slant = Cairo.FontSlant.ITALIC;// Cairo.FontSlant +``` + +* Configure axis labels font + +```vala +var labels; + +labels = config.x_axis.labels; +//or +labels = config.y_axis.labels; + +labels.font.size = 12; // uint8 In pixels +labels.font.color = {1.0, 0.0, 0.0, 1.0}; // Gdk.RGBA +labels.font.weight = Cairo.FontWeight.BOLD; // Cairo.FontWeight +labels.font.slant = Cairo.FontSlant.ITALIC;// Cairo.FontSlant +``` + +* Improved legend labels vertical alignement + # 1.4.0 ## New feature diff --git a/meson.build b/meson.build index f86e5c0..3bd32ef 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('live-chart', ['vala', 'c'], version: '1.3.4') +project('live-chart', ['vala', 'c'], version: '1.5.0') cc = meson.get_compiler('c') libm = cc.find_library('m', required: true)