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

2
0

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

Version
2.0.0.1654
Images
  • You must to post comments
1
0

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()));

or

            // 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,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies