Skip to content

Releases: lcallarec/live-chart

1.10.0

07 Jan 17:39
Compare
Choose a tag to compare

New features

Fixes

1.9.1

24 Nov 21:35
Compare
Choose a tag to compare

Fixes

  • Missing second point in line / line-area serie

  • Last point in line / line-area rendered twice

  • Left padding when auto padding is enabled and y axis has no unit

  • Crash when accessing deprecated Chart.background.main_color property

  • Tests can execute deprecated stuff without warnings

1.9.0

19 Nov 14:08
Compare
Choose a tag to compare

1.9.0

New features

Max and Min bound line renderer draws a straight line which represents either a MIN or a MAX of a given serie, or of all series.

var heap = new LiveChart.Serie("HEAP", new LiveChart.SmoothLineArea());
heap.line.color = { 0.3, 0.8, 0.1, 1.0};

var rss = new LiveChart.Serie("RSS",  new LiveChart.Line());
rss.line.color = { 0.8, 0.1, 0.8, 1.0};

var max = new LiveChart.Serie("MAX OF RSS OR HEAP", new LiveChart.MaxBoundLine());
var mrss = new LiveChart.Serie("MAX HEAP", new LiveChart.MaxBoundLine.from_serie(rss));
max.line.color = { 0.8, 0.5, 0.2, 1.0};
mrss.line.color = { 0.5, 0, 1.0, 1.0};

chart.add_serie(heap);
chart.add_serie(rss);
chart.add_serie(max);
chart.add_serie(mrss);

1.8.0

04 Nov 11:15
Compare
Choose a tag to compare

New features

var threshold = new LiveChart.Serie("threshold",  new LiveChart.ThresholdLine(200.0));
threshold.line.color = { 0.8, 0.1, 0.1, 1.0};
threshold.value = 250.0; // update threshold at runtime
  • Add serie line / outline configuration options via LiveChart.Serie.line.
    Full configuration details available in Path class.
serie.line.color = { 0.0, 0.1, 0.8, 1.0};
serie.line.width = 2;
serie.line.dash = Dash() {dashes = {1}, offset = 2};
serie.line.visibility = false;//or true

Deprecations

1.7.1

03 Nov 09:50
Compare
Choose a tag to compare

API

1.7.0

02 Nov 08:17
Compare
Choose a tag to compare

API

  • Series can be retrieved using Chart.series property, by index using array access notation or getter (Chart.series[index] or Chart.series.get(int index)), or by name (Chart.series.get_by_name(string name)). Adding a new value to a serie is simpler : get the serie (either from where you created it or from chart's property) and add a value with Serie.add(double value)

  • Hence Chart.add_value and Chart.add_value_by_index methods are now deprecated and will be removed in LiveChart 2.

1.6.1

15 Sep 19:19
Compare
Choose a tag to compare

Contributions from https://github.com/taozuhong:

Fixes

Misc

  • Build shared library if needed

1.6.0

27 Aug 20:37
Compare
Choose a tag to compare

1.6.0

API

  • add chart.add_unaware_timestamp_collection_by_index(int serie_index, Gee.Collection<double?> collection, int timespan_between_value) method, to add your own data collection to a serie given its serie_index (unlike chart.add_unaware_timestamp_collection() which takes the serie as argument)

Fixes

  • Crash when the max value of a serie is 0
  • Crash when the chart widget is realized before any data is added

1.5.1

08 Jul 20:16
Compare
Choose a tag to compare
  • add chart.add_value_by_index(int serie_index, double value) method, to add a value to a serie given its serie_index (unlike chart.add_value() which takes the serie as argument)

1.5.0

15 Apr 12:52
Compare
Choose a tag to compare

New feature

  • Configure legend font
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
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