SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I have issue with export SciChart to Bitamp. I have to generate pdf report from data. Report contains two charts.
It is possible to render chart in memory and export to bitmap? I know it is possible in WPF but I couldn’t achive this in Android.
Now my solution is that I render this charts on fragments and wait 1s on each to render and then save chart. But this solution is not good. For slower devices chart is not exported correctly.
For example on one device have strange grid (only exported bitmap, fragment with this chart looks good):
I’m trying to export my graphs using the XamlRenderSurface and the ExportToXPS extension function.
I can export a BitmapImage from it fine but the xps image only has the Axis lines and a vertical annotation on it. See images for comparison.
Also, it outright crashes in some other graphs I have on Get MinorDelta because of a null reference exception, no additional info is given out by DebugWhySciCharDoesntRender = true. Likewise in this case, I can export to bitmap just fine. I am using custom tick providers.
I should also note that I’m rendering the charts from memory they’re not visually displayed when export them.