IGTreemapViewDataSource Protocol Reference

Conforms to NSObject
Declared in IGTreemapViewDataSource.h

Overview

This protocol must be implemented by any interface that will be used as the datasource for the treemap view. The job of a treemap datasource is to create the initial tree node structure and set the links between the treemap view and the treemap nodes.

– treemapView:provideRootNodeWithSource: required method

Asks to provide the initial root node for the treemap view.

- (IGTreemapNode *)treemapView:(IGTreemapView *)treemapView provideRootNodeWithSource:(NSObject *)source

Parameters

treemapView

Reference to the treemap view.

source

Data structure used to create the nodes.

Return Value

The treemap node that will be the root node.

Declared In

IGTreemapViewDataSource.h

– provideSourceForTreemapView: required method

Returns the data structure used to populate the treemap.

- (NSObject *)provideSourceForTreemapView:(IGTreemapView *)treemapView

Parameters

treemapView

Reference to the treemap view.

Declared In

IGTreemapViewDataSource.h