SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I am trying to change background color of scichart surface and also need to change color of grid bands and grid lines.
So far I am able change background color of scichart surface using scichartSurface.setBackgroundcolor API
But I am not able to find api can customize/ remove grid bands and grid lines.
Please find images attached for more details.
xAxis.setDrawMajorGridLines(false); xAxis.setDrawMinorGridLines(false); xAxis.setDrawMajorBands(false); yAxis.setDrawMajorGridLines(false); yAxis.setDrawMinorGridLines(false); yAxis.setDrawMajorBands(false);
If you need to customize bands/gridlines you need to set properties above to true to enable drawing and then set PenStyle\BrushStyle with desired colors for X and Y axes:
xAxis.setMajorGridLineStyle(majorGridlineStyle); xAxis.setMinorGridLineStyle(minorGridlineStyle); xAxis.setAxisBandsStyle(bandsStyle); yAxis.setMajorGridLineStyle(majorGridlineStyle); yAxis.setMinorGridLineStyle(minorGridlineStyle); yAxis.setAxisBandsStyle(bandsStyle);
You can find more information about customization of axis in our documentation.
This should provide desired appeareance of chart. Hope this will help you!
Please login first to submit.