Repository navigation
·
3 commits
to release/v2.2.x
since this release
LiveCharts 2.2.0 is the first stable release that runs on Avalonia 12 and Uno Platform 7, together with the fixes made since 2.0.5.
There is no stable 2.1: the 2.1.0-dev prereleases come from master and stay previews. 2.2 continues the 2.0 line, with the same public API.
Before you upgrade
- Uno Platform: 2.2 requires Uno Platform 7.
LiveChartsCore.SkiaSharpView.Uno.WinUI2.2 is built for Uno 7 (Uno.Sdk7.x) and does not work on Uno 6. If your app is on Uno 6, stay on 2.0.5. - Avalonia: one package for Avalonia 11 and 12. The package is still built against Avalonia 11.0.0 and runs on 11 and 12. No change is needed on either.
- Every other platform (WPF, WinForms, WinUI, MAUI, Blazor, Eto) is a drop-in update from 2.0.x.
Highlights
- Avalonia 12 support without dropping Avalonia 11 (#2117).
- Uno Platform 7 support, thanks to @ajpinedam, @MartinZikmund and @mikernet (#2401, #2414).
- A
Visualwith a negativeZIndexnow draws behind the series, for backgrounds and other decorations under the data (#2364). Visuals with aZIndexof 0 or more still draw on top, as before. double.NaNnow means "no value", likenull. A NaN leaves a gap instead of making the whole line disappear (#2340).
Fixes
Core / chart engine
- #2405: a chart updated while no frame could be drawn (for example while hidden) now shows the latest data on its next frame, instead of keeping stale data until the next update.
- Fixed an intermittent native crash (access violation) when a chart was unloaded while the render thread was drawing it, seen mostly on Avalonia with GeoMap (#2417).
- #2340: NaN values are treated as empty points, the same as
null. - #2394: a pie chart's tooltip no longer picks a near-zero slice away from the pointer. Thanks @darxis (#2395).
- #2388: on logarithmic axes, subseparators and subticks follow the log scale and the axis direction. Thanks @celanderA (#2388, completed in #2423).
- #2371:
DrawnLabelVisualkeeps the alignment of its label, so chart titles honorMiddleandEnd. - #2364: a
VisualorVisualElementwith a negativeZIndexdraws behind the series. - #2372: gradient paints follow the chart when it is resized.
Avalonia
- #2117: Avalonia 12 support, still compatible with Avalonia 11.
- #2405: hidden charts no longer redraw their area every frame, and catch up when shown again. Thanks @MXM-7 (#2406).
Uno Platform
- Uno Platform 7 support. Thanks @ajpinedam, @MartinZikmund and @mikernet, whose work in #2401 this release ships (#2414).
WinUI and Uno (Windows App SDK)
- #2389: on touch-capable machines, mouse drags no longer lose their moves, so panning and
PointerMoveCommandwork while dragging. - A chart that is removed and added back at once no longer stays blank (#2421).
MAUI
- #2404: on iOS and Mac Catalyst, a chart no longer stays blank after its view is removed from the tree and added back.
- #2403: on Windows, panning and zooming by section with the mouse work on touch-capable machines (the same fix as #2389).
WPF and other XAML platforms
- #2397: an implicit chart
Styleno longer throws aNullReferenceExceptionwhile the chart is constructed.
Documentation and samples
- #2382: documentation links that pointed to an unaffiliated domain now point to livecharts.dev, and links to renamed API types are fixed. Thanks @VikumKarunathilake for the README fix (#2381).
- The samples need C# 14 and CommunityToolkit.Mvvm 8.4.1 or later, no longer C# 13 preview features.
Contributors
Thanks to everyone who contributed to this release:
- Uno Platform 7: @ajpinedam, @MartinZikmund, @mikernet and @beto-rodriguez
- Fixes and docs: @celanderA, @darxis, @MXM-7 and @VikumKarunathilake
- Avalonia 12, most of the fixes, the tests and the backports: @beto-rodriguez