Pre loader

Remove SciChartSurface Border

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

Hi,

I tried to remove the black borders of the chart surface but to no avail. Is there a way to remove the border and have the chart to show just the major Grid lines?

I am right now using the theme – Bright Spark.

Version
5
  • You must to post comments
0
0

Hi Chris,

The border should be stylable via the GridLinesPanel style. have a look at Xaml Styling documentation for more info

Templating and Styling Chart Parts

enter image description here

<!--  Define styles for the GridLinesPanel  -->
<Style x:Key="GridLinesPanelStyle" TargetType="s:GridLinesPanel">
       <Setter Property="Background" Value="Pink"/>
       <Setter Property="BorderThickness" Value="2"/>
       <Setter Property="BorderBrush" Value="SteelBlue"/>
</Style>

<!-- Where xmlns:s="http://schemas.abtsoftware.co.uk/SciChart" -->
<s:SciChartSurface GridLinesPanelStyle="{StaticResource GridLinesPanelStyle}">
</s:SciChartSurface>

Best regards,
Andrew

  • You must to post comments
0
0

Thanks. That worked!

  • 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