Pre loader

Xamarin.iOS: Fixed width of axes.

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

Answered
0
0

We have 2 graph surfaces with 2 Y axes on each side, but the label formatting of the axes is different. That makes the axes widths different and therefore both the graphs appear as they have different widths. Is there a way to make the axis widths fixed so the graphs can be the same size?

Version
2.2.2.854
  • You must to post comments
Best Answer
1
1

Hello Lazar,

Please take a look at our Xamarin Multi-Pane Stock Charts example, which showcase how to use SCIAxisAreaSizeSynchronization class, to sync axes area size.

EDIT:
Also, you can force axis to has predefined size despite the layout process. To do so, please use properties on sciChart surface as below;

surface.leftAxisAreaForcedSize = 100;
surface.topAxisAreaForcedSize = 100;
surface.rightAxisAreaForcedSize = 100;
surface.bottomAxisAreaForcedSize = 100;

Hope that helps.

Best Regards,
Nazar R.

  • Lazar Nikolov
    Hey Nazar. Thanks for the answer, but it’s not what I’m looking for. I’m talking about the actual width of the axes. For example, if it’s zoomed in a lot the axis’ label would have 1 character, if we zoom out and reach thousands the character label would have 4 characters, so the width of the axis at that moment will be significantly larger, thus making the graph’s area smaller. Our goal is to make the width of all of the axes fixed so they’ll contain the largest axis label and have a free space for the smaller axis labels. Is it possible to predetermine and hardcode the widths of the axes?
  • Lazar Nikolov
    We do use Area Size Synchronization btw.
  • Nazar Rudnyk
    Please see the updated answer. Best Regards.
  • Lazar Nikolov
    Now that’s what I needed! Thanks a lot Nazar!
  • 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