Currently we have two graph surfaces with two Y axes on each side and we need all of the Y axes to have fixed width size. Until now we were achieving that like this:
topGraphSurface.LeftAxisAreaForcedSize = 45;
topGraphSurface.RightAxisAreaForcedSize = 45;
bottomGraphSurface.LeftAxisAreaForcedSize = 45;
bottomGraphSurface.RightAxisAreaForcedSize = 45;
but since updating to the new SciChart v3 we get the error “SciChartSurface does not contain a definition for (Left)AxisAreaForcedSize”. I couldn’t find any information about this in the Migration guide, so is there a way to achieve this in the new version?
Can I ask you what is the purpose of hardcoding AxisAreaForcedSize to exactly 45? In v.3 the Axis area is calculating automatically based on axis title, tick labels, etc.
If you want to layout two charts you can use SCIChartVerticalGroup. See example Multi-Panel Stock Chart
If you want to add some padding to your axis you can use axis.axisTickLabelStyle property as described here:
If you want to have some custom axis layout you can play with the layout manager as described here:
Let us know more details about your requirements. And if it is possible, please provide some test example so we stay on the same page trying to help you.
To force axis labels to have a fixed number of characters you can use Axis.textFormatting property. More here
See also Multi-Panel Stock Chart example where this approach has been implemented.
Let us know if that helped.
Please login first to submit.