Skip to main content

LightningChart general topics

A wide range of topics, which are not specific View or Series.

📄️Updating chart data or properties

Every property or series data value change will cause the LightningChart control to be redrawn. Every redraw will cause CPU and display adapter overhead. If more than one property is programmatically changed at the same time, the property changes should be made between BeginUpdate() and EndUpdate() method calls, as a batch. BeginUpdate() will stop drawing the control until EndUpdate() is called. There is an internal counter for pending BeginUpdate() calls, and when an equal amount of EndUpdate() calls have been reached, EndUpdate() redraws the control. The following example demonstrates how to update chart with minimal load to the computer.

📄️XAML serialization

LightningChart .NET supports XAML serialization from version 12.0. This means that .NET class XamlWriter can be used to serialize LightningChart object into XAML markup, while .NET class XamlReader can be used to read XAML input and create a LightningChart object. By using XamlWriter.Save() and XamlReader.Load() methods user can save the state of the Chart (save value for the most of its properties) and import that state next time user opens the application. The example of XAML string of serialized Chart shown in screenshot.

📄️Headless mode

Headless mode is a software capability of working on a device without access to Graphical User Interface (GUI). The term "headless" is also used when software does not require the presence of peripheral devices (like display, keyboard, mouse) or access to them. The absence of peripherals does not cause the failure of initialization or execution processes. However, in this case the software may receive inputs and provide output via other communication interfaces, for example via network or a serial port.