Fast Series in WPF Charts (SfChart)
12 Mar 20241 minute to read
A fast series is a special kind of line chart that can render a collection with a huge number of data points. Fast series is rendered using a polyline segment.
Fast Line
The FastLineSeries
is a special kind of line series that can render a collection with a huge number of datapoints. FastLine is rendered using polyline segment.
<chart:FastLineSeries x:Name="FastLineSeries" ItemsSource="{Binding Data}"
XBindingPath="Date" Interior="#7F7F7F"
YBindingPath="Value"/>
FastLineSeries series = new FastLineSeries()
{
ItemsSource = new ViewModel().Data,
XBindingPath = "Date",
YBindingPath = "Value",
Interior = new SolidColorBrush(Color.FromRgb(0x7F, 0x7F, 0x7F))
};
chart.Series.Add(series);
The following line properties are available for FastLineSeries:
Fast Stacking Column
FastStackingColumnBitmapSeries
similar to StackingColumnSeries except that it loads faster and provides better performance.
<chart:FastStackingColumnBitmapSeries StrokeThickness="5"
ItemsSource="{Binding MedalDetails}”
XBindingPath="CountryName" YBindingPath="GoldMedals"
Interior="#4A4A4A" />
FastStackingColumnBitmapSeries series = new FastStackingColumnBitmapSeries()
{
ItemsSource = new ViewModel().MedalDetails,
XBindingPath = "CountryName",
YBindingPath = "GoldMedals",
Interior = new SolidColorBrush(Color.FromRgb(0x4A, 0x4A, 0X4A))
};
chart.Series.Add(series);