NChartTreeMapSeriesSettings Class Reference

Inherits from NChartTreeSeriesSettings : NChartSolidSeriesSettings : NChartSeriesSettings : NSObject
Declared in NChartTreeMapSeries.h

Overview

NChartTreeMapSeriesSettings class provides global settings for NChartTreeMapSeries.

  preventSmallBoxes

Flag determining if small boxes should be enlarged to ensure some visible area (YES) or not (NO). The default value is NO.

@property (nonatomic, assign) BOOL preventSmallBoxes

Discussion

Sometimes for the trees with a huge difference in weights across children, some boxes may appear too small. For example, if you create a tree with two nodes weighted 99.9 and 0.1, then the first one will be very large, and the second one will barely be visible. This maigh look ugly. To prevent this, you can set this flag to YES and tune the minimalSizeApproximation property to achieve nicer results.

Declared In

NChartTreeMapSeries.h

  minimalSizeApproximation

Approximation for the minimal allowed size for the boxes. The dedfault value is 10.

@property (nonatomic, assign) float minimalSizeApproximation

Discussion

This property has effect is preventSmallBoxes is set to YES only. This is only the approximation of the size in pixels, it is NOT an exact value. “Size” means linear dimension of the box, e.g. width and height.

Declared In

NChartTreeMapSeries.h