NChartCoordSystem Class Reference

Inherits from NChartObject : NSObject
Declared in NChartCoordSystem.h

Overview

The NChartCoordSystem class provides basic methods for managing the chart’s coordinate system.

  margin

Margin of the coordinate system.

@property (nonatomic, assign) NChartMargin margin

Declared In

NChartCoordSystem.h

  plotAreaMargin

Fixed margin for the plot area. If all the margin values are zero (default), it is ignored and calculated based on the content size: widths and heights of captions, axes lables, etc. But if at least one value is non-zero, this margin overrides the automatically calculated one and is applied regardless of actual sizes of other elements.

@property (nonatomic, assign) NChartMargin plotAreaMargin

Discussion

You may want to use this property if you want to control the size of the chart plot area. For example, if you have two plots one over another and you want them to have identical length of X axes to be perfectly aligned even though the values on their Y axes are different (have different width and therefore push their plot areas by different amount of space). Setting this property to equal values for both charts will give you a guaranteed perfect alignment, but you’ll have then to make sure that all the labels have enough space to be displayed. So, use it carefully.

Declared In

NChartCoordSystem.h