Page 1 of 1

Create a chart on a background thread

Posted: Sun Nov 11, 2018 9:48 am
by ezray3
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!

Re: Create a chart on a background thread

Posted: Mon Nov 12, 2018 2:32 pm
by ArctionKestutis
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.

Re: Create a chart on a background thread

Posted: Mon Nov 19, 2018 7:25 am
by ezray3
That worked great, thanks!