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?
- Lazar Nikolov asked 6 years ago
- You must login to post comments
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.
- Nazar Rudnyk answered 6 years ago
- last edited 6 years ago
-
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?
-
We do use Area Size Synchronization btw.
-
Please see the updated answer. Best Regards.
-
Now that’s what I needed! Thanks a lot Nazar!
- You must login to post comments
Please login first to submit.