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
275
Get rid of plot area's side spacing?
posted

I can modify the x axis's bottom (IGCategoryDateTimeXAxis) chrome by setting the extent property. If I do the same for the y axis (IGNumericYAxis) nothing happens. I can see that both sides are not part of the plot area, they're just part of the chart's chrome.

How can i get rid of the spacing on both sides?

  • 26458
    Verified Answer
    Offline posted

    Hi Rogelio,

    Are you saying that you have a numeric y axis on the left and setting extent on it doesn't change the amount of space? That's not something I'm able to reproduce.

    The extent is the proper way to control the spacing on those sides of the chart, which have axes. If you also want to get rid of the space on the sides without axes, you can set

    _chartView.horizontalAutoMargin = 0;
    _chartView.verticalAutoMargin = 0;

     If you're having trouble with the y axis extent, can you give more information about the chartview? Is it just one series with a pair of axes? Does extent take effect when you set it to a non default value (large or small)?