Pre loader

How to customize the SCICHART default theme on Xamarin.Android. I would like to create my own theme ?

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

0
0

I am using SCICHART in my project on Xamarin.Android, but the default them show some themes but I would like to change the background grid color of the reports. Please any can help me ?.

Version
2.0.0
Images
  • You must to post comments
1
0

Hi Jorge,

If I correctly understand your requirements you want to change background of something that we call axis bands.

It is possible to provide background in code by setting appropriate brush style for each axis:

        xAxis.AxisBandsStyle = new SolidBrushStyle(Color.Red); 
        yAxis.AxisBandsStyle = new SolidBrushStyle(Color.Blue); 

or by creating custom theme and applying it to the chart. If you need more information about how to do this then I would suggest to take a look on this example which uses built-in themes and custom BerryBlue theme which is defined in styles:

<!-- Axis defaults -->
<item name="tickTextColor">#FF6495ED</item>
<item name="majorGridLinesColor">#102A47</item>
<item name="minorGridLinesColor">#0D223D</item>
<item name="axisBandsColor">#0E233A</item>

Hope this will help you!

Best regards,
Yura

  • You must to post comments
0
0

Hi Jorge,

You might also be interested in our Android Custom Theme example, which shows you how to include a theme in styles.xml as a resource in your app, and apply it to SciChart.

enter image description here

Hope this helps!

Best regards,
Andrew

  • You must to post comments
Showing 2 results
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