Pre loader

Setting up margins beyond borders of main chart area

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,
Is it possible to set up size of a margin fields beyond borders of chart area? I would like to shrink it because when having a lot of charts every inch of display is valued. Please see screenshot.

Images
  • You must to post comments
0
0

Hi Ivan,

Take a look at the SciChartSurface.Padding property. This can be set to zero in Xaml to reduce the size of padding all around.

I advice you to also take a look at Snoop for WPF, which is a very powerful (and free) visual debugger. Using Snoop you can inspect the chart and all of the items in the visual tree, see property values (such as margin, padding) and change them dynamically to see the effect. If you’ve ever done web-development this is like Firebug but for WPF.

Hope that helps!

Andrew

  • ivankostin
    Hi Andrew, Thank you. I tried Snoop, but had a problem with it. My app has main window, clicking a button in it i'm opening new charts. Even if I choose in Snoop ChartWindow initially and drag magnify or snoop crosshairs into it - it opening MainWindow anyway and I can't see sciCharts elements. I will have to make another test application with chart in main window.
  • ivankostin
    I have zeroed padding and it became much better. Paddding size now automatically set to contain axis values if they have it. Thank you.
  • You must to post comments
Showing 1 result
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