SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

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!

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.