Create a chart on a background thread

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
ezray3
Posts: 9
Joined: Sun Nov 11, 2018 9:41 am

Create a chart on a background thread

Post by ezray3 » Sun Nov 11, 2018 9:48 am

Hi,

In my application I have a feature that the user can export data,
I want to add an image of a chart to that export.

I tried to use "SaveToStream" which returned "false" and did nothing.
If I understand correctly, the chart must be rendered in order to save it to a stream?

I specifically interested in heat map conversion.
How can I achieve this using LightningChart: Converting my data to heat map and save it to stream. All of this on a background thread?
Is it possible at all?

Thanks!

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Create a chart on a background thread

Post by ArctionKestutis » Mon Nov 12, 2018 2:32 pm

In typical usage, chart should be rendered before using most of it functions.
However, LightningChart also has Headless Rendering feature. That is, Headless configuration allows running LightningChart in a headless/server environment. Expected scenarios include background rendering in software applications without User Interface (UI) and generation of a bitmap image from the chart content.
For more details, please check our User's Manual (http://www.arction.com -> Docs) chapter 21. Headless mode and corresponding Demo example.

Hope this helps.

ezray3
Posts: 9
Joined: Sun Nov 11, 2018 9:41 am

Re: Create a chart on a background thread

Post by ezray3 » Mon Nov 19, 2018 7:25 am

That worked great, thanks!

Post Reply