Pre loader

Transparent background

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


Now I using white collor for backgrounds:

 <!-- Background defaults -->
<item name="sciChartBackground">@color/white</item>
<item name="legendBackground">@color/white</item>
<item name="axisTooltipBackground">@color/white</item>

But I whant to display text view uhder chart
When I set backgrounds as transparent I see black lines

And questions is:
1. how can I setup chart to display text under chart component
2. where I can read/see information about styles and for which each parameter is needed.

On first screenshot its what I needed
On second one what I have

  • You must to post comments

Hi Evgeny,

To display other Views under the chart you’ll need to switch to another IRenderSurface implementation because default one uses GlSurfaceView as a base and it doesn’t allow to draw anything below it. We provide two alternative implementations which are abit slower than default one but don’t have problems with transparency – one which is based on TextureView (GLTextureView) and another which uses Canvas API for drawing(RenderSurface). To switch you just need to set new render surface instance for your chart:

            // set Canvas based renderer
            surface.setRenderSurface(new RenderSurface(getActivity()));


            // set OpenGL Texture based renderer 
            surface.setRenderSurface(new GLTextureView(getActivity()));

Regarding styling of chart – unfortunately we don’t have a separate article about chart themes but I would suggest to take a look on IThemeProvider interface and comments for its members which should explain the purpose of each theme parameter.

Hope this will help you!

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.