LiveCharts2 Versions Save

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.

v2.0.0-rc2

5 months ago

The second release candidate of LiveCharts, this is the last preview before the first GA release 🎉.

Performance

Before the first GA release, I decided to spend some time improving the high-performance algorithm, in the next video we are adding 100,000 points each 50ms from multiple threads, then we keep only the last 50 million points in the UI/Memory.

backers

Everything is supper responsive and animated :)

This is a virtualization algorithm, it takes all the the data, and builds a smaller but accurate representation of the full data set, the algorithm evaluates the data at different zoom levels, this takes about 200ms each 10 million records, then it saves some key points in memory (about 13% extra memory allocated), finally when the user interacts with the chart (zooming/panning), the chart can respond in less than 1ms, no matter the total number of records.

This algorithm also works as a circular array, this means that the data can change with basically no performance impact (unless the capacity grows).

These are some benchmarks of the current version:

image

The high-performance package will be available for everyone with the next release of the library.

Improved interaction on Android/iOS

User interactions with the chart (Zooming, Panning, crosshairs, tapping, scrolling), work much better on both platforms.

New articles

issues fixed

  • #1289
  • #935
  • #1281
  • #1318
  • #1329
  • #1285
  • #1255
  • #1334
  • #1305
  • #1330
  • #1291
  • #1332
  • #1340

Breaking Changes

Sadly, the performance review required to make a small but braking change, if you are using custom mappers, you must update to the new API:

https://livecharts.dev/docs/Maui/2.0.0-rc2/Overview.Mappers

What's Changed

New Contributors

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/2.0.0-rc1...v2.0.0-rc2

2.0.0-rc1

7 months ago

The first release candidate of LiveCharts2 is finally here, this release fixes a lot of reported issues, and improves the user interaction with the chart on Android, iOS, Mac Catalyst and Windows, a lot of new examples were added to the web site.

Whats next for the LiveCharts2?

Most of the issues of the library seem to be solved now, the first GA release should come soon (November/December 2023), the Backers's Package (performance, themes and extended features) should be available for everyone soon, this package will make it even easier to create stunning charts.

User interaction

This release improves the user interaction with the chart on touch screens, touch pads and the mouse/magic mouse; On MAUI and Uno we use the native events in every OS to create a custom experience for the library, on Avalonia, we use the events provided by the framework.

On previous versions, some examples in the web were not working properly, now every sample works as the docs say.

https://github.com/beto-rodriguez/LiveCharts2/assets/10853349/72c41ac5-96db-4e08-bce3-ae7d797f62d0

https://github.com/beto-rodriguez/LiveCharts2/assets/10853349/79d829c9-5ef2-4691-bd37-2e64a2e3a48e

New charts

Since a couple of releases ago, new chart types were added, this release announces the new types:

  • Angular gauges

.

  • Error bars

.

  • Box Series

.

Multiple new examples in the web site

A lot of examples in the repo were not in the web site, there are a lot of new examples:

.

.

.

.

.

.

Issues fixed:

  • Multiline labels were improved, in previous versions there were special cases where text was not measured properly.
  • Tooltips and legends, now by default wrap every long string into multiple lines, this helps to prevent that the tooltip goes out of the chart, tooltips in LiveCharts are limited to the control area but when you need a "framework specific" tooltip, you can create your own (#912)
  • Events on MAUI and Uno work much better, the implementation of native events, allowed LiveCharts to invoke the correct event no matter the OS the chart is running on.
  • #1076
  • #1188
  • #1198
  • #1242
  • #1209 (updated site sample, see the web site for the solution)
  • #1140
  • #1200
  • #738
  • #1145
  • #1154
  • #1166
  • #907

What's Changed

New Contributors

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/2.0.0-beta.910...2.0.0-rc1

2.0.0-beta.910

8 months ago

Fixes a critical memory leak.

What's Changed

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/2.0.0-beta.900...2.0.0-beta.910

2.0.0-beta.900

8 months ago

MacOS improvements

  • Multiple improvements in the labels measuring and positioning, labels were not measured and placed properly specially on MacOS.

Multiple improvements to MAUI

  • The MAUI view now considers the DeviceDisplay.MainDisplayInfo.Density to scale the plot, now the look of the charts is consistent on multiple devices/OS, if you built a custom scale, now it is no longer necessary.
  • MAUI zooming and panning was improved, but on desktop devices we still cannot use the mouse wheel to zoom in/out, because MAUI does not provide a way (or an easy one) to detect the mouse wheel moves, if you are interested in this feature, let the MAUI team know it at #16130.
  • Now LiveCharts events work properly on MAUI.

Default tooltips are smarter

Now (by default) when a series has no name set, the tooltip will ignore the series label (in older versions the label Series #1, Series #2 ... Series #n was displayed).

v

But as soon as you set the Series.Name property it will be shown in the tooltip:

v

When an axis has Labels, the label will be used as the header of the tooltip:

v

Transforms animations were improved

There was a bug in the core of LiveCharts that caused that transforms were not animated properly; they are now fixed:

v

Right to left writing

  • Now you can configure LiveCharts to render tooltips and labels from right to left.

rtl

LiveCharts.Configure(config => config
  .HasGlobalSKTypeface(SKTypeface.FromFamilyName("Noto Naskh Arabic"))
  .UseRightToLeftSettings());

It is now easy to create SVG based points:

    var seriesCollection = new ISeries[]
    {
        new LineSeries<double, SVGPathGeometry>
        {
            Values = new double[] { -2, 2, 1, 3, -1, 4, 3 },
            Fill = null,
            GeometrySvg = SVGPoints.Star,
            GeometrySize = 20
        },
        new LineSeries<double, SVGPathGeometry>
        {
            Values = new double[] { 3, 4, -1, 3, 1, 2, -2 },
            Fill = null,
            GeometrySvg = SVGPoints.Heart,
            GeometrySize = 20
        },
        new LineSeries<double, SVGPathGeometry>
        {
            Values = new double[] { -2, 2, 1, 3, -1, 4, 3 },
            Fill = null,
            GeometrySvg = "insert your svg path here",
            GeometrySize = 20
        },
    };

image

Scrollable charts

v

code here

MVVM improved

There are new commands that are useful to follow MVVM, the scrollable chart sample above implements the MVVM pattern, also the add point on click sample was updated to use MVVM.

Fixed issues

-#119 -#410 -#481 -#834 -#906 -#945 -#1063 -#1081 -#1087 -#1096 -#1099 -#1109 -#1112 -#1113 -#1120 -#1123 -#1124 -#1132 -#1135 -#1139 -#1140

Other changes (auto-generated)

New Contributors

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/v2.0.0-beta.800...2.0.0-beta.900

v2.0.0-beta.800

10 months ago

This release fixes a bunch of bugs and visual glitches (thanks for all the reports!) and also reinforces the layout system of the library, useful to create custom legends or tooltips (and more, no docs about it yet), Now the library has its own version of Stack/wrap panels and also tables, a lot of new tests were introduced and helped to clean and find a lot of issues in the library.

Should I update?

Yes! this should be a mature version of the library; there a bunch of new tests introduced in this version, a lot of fixed issues, it is recommended to update if you are using an older version, there are only a couple of braking changes, and they should only affect you if you built a custom legend or tooltip.

Most of the known issues of the library should be solved now, there is a low change to introduce a new braking change after this release in the way to version 2.0.0.

What is the state of the library now?

In general, the core features of the library seem really solid (there are a few issues like #834 that need to be fixed yet), soon the next step will be to spend more time on the supported platform specific bugs, please keep reporting it helps a lot.

Better tooltips

Tooltips changed a lot in the last couple of releases, now the library completely draws them instead of using the Framework to render them, this introduced some new bugs and that is why the layout system of the library was reinforced, ToolTips look better and are placed in a smarter way:

ttp (source: https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/Axes/LabelsRotation/ViewModel.cs)

gg (source: https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/Financial/BasicCandlesticks/ViewModel.cs)

image

Now it is easier to customize tooltips, in general VisualElements in the library had a deep review, in the next case, there is a bounce animation for the tooltip, this demonstrates the flexibility of LiveCharts to build animations and drawn controls:

bounce (source: https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/General/TemplatedTooltips)

anim

Better legends

Same as tooltips, now legends behave much better, and by default wrap the content when there is not enough space:

wrap

Customs legends are more flexible:

image (source: https://github.com/beto-rodriguez/LiveCharts2/tree/v2.0.0-beta.700/samples/ViewModelsSamples/General/TemplatedLegends)

Fixed issues

#410 #519 #731 #747 #764 #793 #795 #832 #845 #849 #859 #861 #869 #928 #934 #937 #953 #964 #970 #987 #990 #1046

Breaking changes

1. Custom legends

IChartLegend changed, this should only affect you if you built a custom legend.

Previously

public interface IChartLegend<TDrawingContext>
{
    void Draw(Chart<TDrawingContext> chart);
}

Now

public interface IChartLegend<TDrawingContext>
{
    void Draw(Chart<TDrawingContext> chart);

    LvcSize Measure(Chart<TDrawingContext> chart);
}

2. Custom tooltips

This should only affect you if you built a custom tooltip, this change prevents a tooltip to hold a refence to the chart, instead LiveCharts will inject the chart.

IChartTooltip<SkiaSharpDrawingContext>.Hide() method changed to IChartTooltip<SkiaSharpDrawingContext>.Hide(Chart<TDrawingContext> chart)

This is an example of how to migrate a custom tooltip from version beta.710 and lower:

Previously

public class SKDefaultTooltip : IChartTooltip<SkiaSharpDrawingContext>
{
    private Chart<SkiaSharpDrawingContext> _chart;

   // then we used to set the _chart in the Show() method.

    public void Hide()
    {
        if (_chart is null || _panel is null) return;
        _chart.RemoveVisual(_panel);
    }
}

Now

public class SKDefaultTooltip : IChartTooltip<SkiaSharpDrawingContext>
{
    public void Hide(Chart<SkiaSharpDrawingContext> chart)
    {
        if (chart is null || _panel is null) return;
        chart.RemoveVisual(_panel);
    }
}

3. Some event handlers were simplified.

For the series: LineSeries, StepLineSeries, StackedAreaSeries and StackedStepAreaSeries the ChartPointPointerDown, ChartPointPointerHover and ChartPointPointerHoverLost events are now much simpler, if you are using any of those events in any of those series, you must update the handler method. This makes all the series events consistent.

This is an example of how to migrate from beta.710 and lower:

Previously

var lineSeries = new LineSeries<int>();

lineSeries.ChartPointPointerDown +=
   (IChartView chart, ChartPoint<int, BezierPoint<CircleGeometry>, LabelGeometry>? point) =>
    {
        // point was clicked!
    };

Now

var lineSeries = new LineSeries<int>();

lineSeries.ChartPointPointerDown +=
    (IChartView chart, ChartPoint<int, CircleGeometry, LabelGeometry>? point) =>
    {
        // point was clicked!
    };

What's Changed

New Contributors

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/v2.0.0-beta.700...v2.0.0-beta.800

v2.0.0-beta.700

1 year ago

Beta.700

Multiple improvements in the Blazor WebAssembly view, take a look at this web site, it is running LiveCharts on the browser with an amazing performance. Improvements also in memory management by @pkindruk, now the library consumes less resources. Themes are ready for production and will soon be available for everyone. Tooltips had a full review; tooltips are now completely drawn by the library instead of the UI framework.

LiveCharts on the browser

Take a look at LiveCharts running in the broswer

Multiple improvements in net 7 allow LiveCharts to run in the browser, with an amazing performance via Blazor WASM, you can find that site in this repository, it is Blazor Sample project, the loading time of the site is amazing for a SPA, Blazor is just amazing.

Memory management

The library is more efficient to render the charts, this is an effort of @pkindruk that made significant improvements on memory allocation.

Themes

Themes had a deep review, there are basically no changes on the default themes, but internally there is a new world behind them, themes docs will be public soon, it is now super easy to create themes for the library.

Tooltips and legends

Tooltips and legends are now completely handled by the library, due multiple issues we faced with the old approach (use the UI framework to render them), Tooltips are now animated, have rounded borders, shadows and should consume less resources, in older versions all those previous factors depend on the UI Framework.

Breaking changes

Tooltips and legends fonts and text size are now handled by the library, this means that we must use the LiveCharts API to give format to text in tooltips and legends:

cartesianChart = new CartesianChart
{
    Series = viewModel.Series,

    TooltipTextSize = 16, 
    TooltipTextPaint = new SolidColorPaint 
    { 
        Color = new SKColor(242, 244, 195), 
        SKTypeface = SKTypeface.FromFamilyName("Courier New") 
    }, 
    TooltipBackgroundPaint =new SolidColorPaint(new SKColor(72, 0, 50))
};

The site is updated you can there find a sample for your target UI framework.

This has multiple benefits, we have full control over what is going on all the platforms, instead of depending on 9 different APIS (all the platforms) also tooltips and legends are now team-able.

What's Changed

New Contributors

There are multiple issues fixed, please take a look at the full log for more details

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/beta.500...v2.0.0-beta.700

beta.500

1 year ago

What's new?

Conditional draw is back!

Conditional draw is back to v2! this was the last thing missing from v0 🚀, the library needed to mature to implement this, now it feels solid enough to add this feature.

In the following sample, we highlight the bars above 5.

conditional

// full code at 
// https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/General/ConditionalDraw/ViewModel.cs
var series1 = new ColumnSeries<ObservableValue>
{
    Name = "Mary",
    Values = new ObservableValue[] { ... }
}
.WithConditionalPaint(new SolidColorPaint(SKColors.Black.WithAlpha(50)))
.When(point => point.Model?.Value > 5);

Clockwise pies and gaunges

You can change the direction of a pie or a gauge using the PieChart.IsClockwise property, this sample has a cool bounce animation :sunglasses:

clockwise

Crosshair just works!

crosshair

// full code at:
// https://github.com/beto-rodriguez/LiveCharts2/blob/dev/samples/ViewModelsSamples/Axes/Style/ViewModel.cs

private static readonly SKColor s_crosshair = new(255, 171, 145);

public Axis[] XAxes { get; set; } =
{
    new Axis
    {
        CrosshairPaint = new SolidColorPaint
        {
            Color = s_crosshair,
            StrokeThickness = 3
        },
        CrosshairLabelsPaint = new SolidColorPaint
        {
            Color = SKColors.Black,
            SKFontStyle =  new SKFontStyle(SKFontStyleWeight.SemiBold, SKFontStyleWidth.Normal, SKFontStyleSlant.Upright),
        },
        CrosshairLabelsBackground = s_crosshair.AsLvcColor(),
        CrosshairPadding = new Padding(10, 20, 10, 10)
    }
};

Fonts are flexible now

Now we can style fonts, bold, italics, fonts and more.

image

// full code at:
// https://github.com/beto-rodriguez/LiveCharts2/blob/dev/samples/ViewModelsSamples/Axes/LabelsFormat/ViewModel.cs
public Axis[] XAxes { get; set; } =
{
    new Axis
    {
        Name = "Salesman/woman",
        Labels = new string[] { "王", "赵", "张" },
        LabelsPaint = new SolidColorPaint
        {
            Color = SKColors.Black,
            //  now the library exposes the SKTypeface on paint objects.
            SKTypeface = SKFontManager.Default.MatchCharacter('汉')
        }
    }
};

public Axis[] YAxes { get; set; } =
{
    new Axis
    {
        Name = "Sales amount",
        NamePadding = new LiveChartsCore.Drawing.Padding(0, 15),
        Labeler = Labelers.Currency,
        LabelsPaint = new SolidColorPaint
        {
            Color = SKColors.Blue,
            FontFamily = "Times New Roman",
            SKFontStyle = new SKFontStyle(SKFontStyleWeight.ExtraBold, SKFontStyleWidth.Normal, SKFontStyleSlant.Italic)
        },
    }
};

We can now set titles to charts.

In this sample we place a LabelVisual, but you can place any visual actually, this is specially useful to generate images with the library where you do not have a UI to set a title.

image

// full code:
// view:              https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/WPFSample/Lines/Basic/View.xaml
// viewmodel:    https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/Lines/Basic/ViewModel.cs

public LabelVisual Title { get; set; } =
    new LabelVisual
    {
        Text = "My chart title",
        TextSize = 25,
        Padding = new LiveChartsCore.Drawing.Padding(15),
        Paint = new SolidColorPaint(SKColors.DarkSlateGray)
    };

There is now an easy way to control the max zoom level of a chart.

see #630 for more info.

Fixed issues

  • #639
  • #638
  • #413
  • #637
  • #601 (unconfirmed)
  • #607
  • #618
  • #620
  • #623
  • #629
  • #634
  • #642

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/v2.0.0-beta.400...beta.500

v2.0.0-beta.400

1 year ago

New Features:

New visuals to Axes

Now Axes are much more flexible, there are multiple new properties (SubseparatorsPaint, TicksPaint, SubticksPaint and ZeroPaint):

.

// this is just a sample there is missing code, full sample at:
// https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/Axes/Style/ViewModel.cs

private static readonly SKColor s_gray = new(195, 195, 195);
private static readonly SKColor s_gray1 = new(160, 160, 160);
private static readonly SKColor s_gray2 = new(90, 90, 90);
private static readonly SKColor s_dark3 = new(60, 60, 60);

new Axis
{
    LabelsPaint = new SolidColorPaint(s_gray),
    SeparatorsPaint = new SolidColorPaint
    {
        Color = s_gray,
        StrokeThickness = 1,
        PathEffect = new DashEffect(new float[] { 3, 3 })
    },
    SubseparatorsPaint = new SolidColorPaint
    {
        Color = s_gray2,
        StrokeThickness = 0.5f
    },
    ZeroPaint = new SolidColorPaint
    {
        Color = s_gray1,
        StrokeThickness = 2
    },
    TicksPaint = new SolidColorPaint
    {
        Color = s_gray,
        StrokeThickness = 1.5f
    },
    SubticksPaint = new SolidColorPaint
    {
        Color = s_gray,
        StrokeThickness = 1
    }
}

This is also useful to build cleaner multi-axes charts:

image

// full code at:
// https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/Axes/Multiple/ViewModel.cs

Visual elements are back to v2

With this feature we can draw any shape to the chart and scale them using the chart scale (pixels is also supported), it is also useful to add comments or notes to a chart, the API is simple, there is going to be a better sample in the site, but at this point you can browse the source code of this sample (link below).

.

// full code at:
// https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/General/VisualElements/ViewModel.cs

public IEnumerable<ChartElement<SkiaSharpDrawingContext>> VisualElements { get; set; } = new List<ChartElement<SkiaSharpDrawingContext>>
{
     new GeometryVisual<RectangleGeometry>
     {
         X = 2.5,
         Y = 3.5,
         LocationUnit = MeasureUnit.ChartValues,
         Width = 4,
         Height = 2,
         SizeUnit = MeasureUnit.ChartValues,
         Fill = new SolidColorPaint(new SKColor(239, 83, 80, 50)) { ZIndex = 10 },
         Stroke = new SolidColorPaint(new SKColor(239, 83, 80)) { ZIndex = 10, StrokeThickness = 1.5f },
     },
     new GeometryVisual<OvalGeometry>
     {
         X = 5.5,
         Y = 6,
         LocationUnit = MeasureUnit.ChartValues,
         Width = 4,
         Height = 5,
         SizeUnit = MeasureUnit.ChartValues,
         Fill = new SolidColorPaint(new SKColor(100, 221, 23, 50)) { ZIndex = - 10 },
         Stroke = new SolidColorPaint(new SKColor(100, 221, 23)) { ZIndex = -10, StrokeThickness = 1.5f },
     },
    // MyGeometry is an SVG icon from google material symbols font:
    // https://github.com/beto-rodriguez/LiveCharts2/blob/master/samples/ViewModelsSamples/General/VisualElements/MyGeometry.cs
     new GeometryVisual<MyGeometry>
     {
         X = 18,
         Y = 6,
         LocationUnit = MeasureUnit.ChartValues,
         Width = 100,
         Height = 100,
         SizeUnit = MeasureUnit.Pixels,
         Fill = new SolidColorPaint(new SKColor(251, 192, 45, 50)) { ZIndex = 10 },
         Stroke = new SolidColorPaint(new SKColor(251, 192, 45)) { ZIndex = 10, StrokeThickness = 1.5f },
     },
     new LabelVisual
     {
         Text = "What happened here?",
         X = 11,
         Y = 1,
         TextSize = 16,
         Paint = new SolidColorPaint(new SKColor(250, 250, 250)) { ZIndex = 11 },
         BackgroundColor = new LvcColor(55, 71, 79),
         Padding = new Padding(12),
         LocationUnit = MeasureUnit.ChartValues,
         Translate = new LvcPoint(0, -35)
     }
};

The library now supports multi-line labels https://github.com/beto-rodriguez/LiveCharts2/issues/424

We can finally generate image charts with legends https://github.com/beto-rodriguez/LiveCharts2/issues/144

Fixed issues:

  • #536
  • #471
  • #424
  • #413
  • #389
  • #365
  • #199
  • #144
  • #556
  • #584

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/2.0.0-beta.361...v2.0.0-beta.400

2.0.0-beta.361

1 year ago

New Features

Zoom by section

We can now use the mouse right button to use the "zoom by section" feature, it works for all the zooming modes in the library.

.

Highlights

  • To keep working in the high performance package, The DataFactory class had a deep review, everything must be cleaner and should improve in general the performance of the library.

  • Now the library handles better Null/Gaps, we can now use null as a point input and the library will handle that:, this only used to work for nullable primitive types (int?, double?, float?... etc), now we can use null for any object.

Older versions

new LineSeries<ObservablePoint>
{
    Values = new ObservablePoint[]
    {
        new ObservablePoint { X = 0, Y = 1 },
        new ObservablePoint { X = 1, Y = 4 },
        new ObservablePoint { X = 3, Y = null },
        new ObservablePoint { X = 4, Y = 5 },
        new ObservablePoint { X = 6, Y = 1 },
        new ObservablePoint { X = 8, Y = 6 },
    }
}

Now: (old syntax is also supported)

new LineSeries<ObservablePoint>
{
    Values = new ObservablePoint[]
    {
        new ObservablePoint { X = 0, Y = 1 },
        new ObservablePoint { X = 1, Y = 4 },
        null,
        new ObservablePoint { X = 4, Y = 5 },
        new ObservablePoint { X = 6, Y = 1 },
        new ObservablePoint { X = 8, Y = 6 },
    }
}

And it produces:

image

Fixes issues

  • #583
  • #579
  • #575
  • #578
  • #570
  • #562
  • #555
  • #552
  • #525
  • #515

What's Changed

Full Changelog: https://github.com/beto-rodriguez/LiveCharts2/compare/v2.0.0-beta.350...2.0.0-beta.360

v2.0.0-beta.350

1 year ago

v2.0.0-beta.350 (An intro to high performance)

This release adds multiple improvements required by the LiveChartsCore.BackersPackage assembly, it is another assembly (not available in NuGet yet) that improves the performance of the library, adds multiple pre-built themes and much more extra features, we are testing this package and soon will be available for everyone.

The performance buff of this assembly is huge, this is a GIF I recorded with a chart with 300 million points, yes 300,000,000, about 20 GB of RAM (I am out of RAM can not test more points) and everything is super smooth, (the GIF speed is in real time, I am just zooming and panning quickly)

.

This performance is expected when the library "freezes" the plot, I mean when the data is not changing anymore, but If the data changes it seems that we can handle less than 2 million.

There are still things to improve but this is definitely the way for the library, it is jut a binary search based algorithm but optimized for the case of the library, I compared the time it takes to add 10 million points to different structures, here is the code and the results (net 6 | Release):

image

It seems that the data structure is actually faster than lists, and really close to arrays, this was an unexpected result, I am so happy with it :)

But that was the time it took to build the data structure, when the data does not change, we do not need to build the structure again, we cache it and then we use it to find the points the user need as he/she/* interacts with the chart (zooming or panning), it takes on average less than 2 milliseconds to find a new set of points (yes it is virtualized, we are of course not drawing the 300 million in the screen).

There are still a couple of issues we need to solve before making this public and I hope that the performance keeps this high.

Oh and I forgot to mention, all you need to change in your code is one line, and all your charts will be boosted.

LiveCharts.Configure(config => config.AddBackersPackageAndDefaults());

So that's it, there are no new things in this release, but there it is required to keep working in the high performance package.