SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

Hi!

I’ve put a couple of charts in a recyclerview based on this example. I’m using a custome theme that’s basically just a white background and grey gridlines. When the charts get recycled (after scrolling them out of view and then back) they start to look weird. Does anyone know what is causing this behavior? I’ve tried two different versions of SciChart, screenshots attached below. Additionally I used to only get some random black squares like this in version 2.0.0.1654, but I can’t seem to reproduce that now.

Chart normally:
Regular Chart

After recycle in version 2.0.0.1654:
After recycle version 2.0.0.1654

After recycle in version 2.5.0.2540:
After recycle version 2.5.0.2540

Version
2.5.0.2540
  • You must to post comments
1
0

Hi Konrad,

This probably could be caused by our default RenderSurface implementation which uses OpenGL for rendering ( I believe RecycleView detaches/attaches chart to window which triggers reinitialization of OpenGL context ). This is known limitation and the only way to workaround it for now is to change RenderSurface which is used by chart:

surface.setRenderSurface(new RenderSurface(getActivity()));

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.