Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Documention
posted

Again Hi all,

Thanks for kind and fast sport.

I want to draw financal indactors below of my main chart. But because of the yAxis labels lengths charts doesnt start from same point. How can i get the main chart y axis margin and give same value to below chart. I must be sure both charts x axis must show same time frames at same points

Parents
No Data
Reply
  • 26458
    Verified Answer
    Offline posted

    Hi,

    The best way to do this is to set an extent on the y axis for both charts.

    IGNumericYAxis *topYAxis = (IGNumericYAxis*)[topChart findAxisByKey:@"yAxis"]; 

    IGNumericYAxis *bottomYAxis = (IGNumericYAxis*)[bottomChart findAxisByKey: @"yAxis"];

    topYAxis.extent = bottomYAxis.extent = 50;

    This should ensure that both vertical label panels have the same width and the chart viewports start from the same x coordinate. Try different extent values to get a better fit.

Children
No Data