SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
You can use our ThemeManager API and create you custom theme for chart. We have an example which shows how to do this.
You can use one of existing themes as parent theme and override only required values.
Or you just can set background for entire chart ( including area which is used for axes) by simple calling setBackground()/setBackgroundResource() on chart instance:
If you need to set background only for area where renderable series are drawn ( exclude area for axes ) you can call setBackground()/setBackgroundResource() for renderable series area:
// get view for renderable series area and set background for it surface.getRenderableSeriesArea().getView().setBackgroundResource(R.drawable.background);
Is this suitable for your needs?
There is an alternative solution for setting renderable series area background which I completely forgot about. SciChartSurface has a bunch of properties which should do the trick – setRenderableSeriesAreaFillStyle and setRenderableSeriesAreaBorderStyle. They should work with default render surface implementation:
Hope this will help you.
Please login first to submit.