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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

1
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.