Releases: lcallarec/live-chart
1.10.0
New features
- Introduce regions for smooth line & smooth line area from Laurent Callarec
- Sliding timeline : PR from Robert-Ordis
- Seek, pause and resume timeline : PR from Robert-Ordis
- Add GTK4 support and drop GTK3 : PR from taozuhong
Fixes
- Properly remove a serie PR from Robert-Ordis
1.9.1
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
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
New features
- Add a new
LiveChart.ThresholdLine
renderer which draw a straight line at a given value.
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
Renderers main_color
properties are now deprecated and will be removed inLiveChart 2
. Use SerieRenderer.color property instead.- Background.main_color property is now deprecated and will be removed in
LiveChart 2
. Use Background.color property instead.
1.7.1
API
-
Add a serie.add_with_timestamp(double value, int64 timestamp) method when you need to add a value with a manually defined timstamp, in milliseconds
-
Serie.set_main_color and Serie.get_main_color methods are now deprecated and will be removed in
LiveChart 2
. Use serie.main_color property instead.
1.7.0
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
Contributions from https://github.com/taozuhong:
Fixes
- Compile error https://github.com/taozuhong on MSYS2
Misc
- Build shared library if needed
1.6.0
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 itsserie_index
(unlikechart.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
1.5.0
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