NChartSankeySeries Class Reference

Inherits from NChartSolidSeries : NChartSeries : NChartObject : NSObject
Declared in NChartSankeySeries.h

Overview

The NChartSankeySeries class provides methods to display sankey series. This type of series is a bit different from the others, because it supports series' hierarchy. Sankey diagram consists of nodes and weighted edges. Nodes are represented by series, edges are represented as links to other series (so-called subseries) and weights are represented by points. For example, to build a graph like A-10->B, where A and B are nodes linked with the edge with the weight 10, you have to create two series, A and B, then add B as subseries to A, and create a point for A with value 10.

  label

Label that will be displayed in the corresponding Sankey node.

@property (nonatomic, strong) NChartTooltip *label

Declared In

NChartSankeySeries.h

– addSubSeries:

Add subseries. Use this to create Sankey chart connections.

- (void)addSubSeries:(NChartSankeySeries *)series

Parameters

series
  • NChartSankeySeries instance that will be linked to the current one.

Declared In

NChartSankeySeries.h

– removeSubSeries:

Remove subseries.

- (void)removeSubSeries:(NChartSankeySeries *)series

Parameters

series
  • NChartSankeySeries instance to remove.

Declared In

NChartSankeySeries.h

  subSeries

Array of subseries.

@property (nonatomic, readonly) NSArray *subSeries

Declared In

NChartSankeySeries.h