Inherits from NSObject
Conforms to TKChartData
Declared in TKChartDataPoint.h

Overview

The basic implementation of the TKChartData protocol.

Properties

dataName

The name of the value (used in Pie/Donut Charts).

@property (nonatomic, strong, nullable) NSString *dataName

Declared In

TKChartDataPoint.h

dataXValue

X axis value.

@property (nonatomic, strong, nullable) id dataXValue

Declared In

TKChartDataPoint.h

dataYValue

Y axis value.

@property (nonatomic, strong, nullable) id dataYValue

Declared In

TKChartDataPoint.h

Class Methods

dataPointWithX:Y:

Creates a data point.

+ (instancetype __nonnull)dataPointWithX:(id __nullable)xValue Y:(id __nullable)yValue

Parameters

xValue

X axis value.

yValue

Y axis value.

Declared In

TKChartDataPoint.h

dataPointWithX:Y:name:

Creates a data point.

+ (instancetype __nonnull)dataPointWithX:(id __nullable)xValue Y:(id __nullable)yValue name:(NSString *__nullable)name

Parameters

xValue

X axis value.

yValue

Y axis value.

name

The data point name (used in Pie/Donut Charts).

Declared In

TKChartDataPoint.h

Instance Methods

initWithName:value:

Creates a data point that will be used in pie chart.

- (instancetype __nonnull)initWithName:(NSString *__nullable)name value:(id __nullable)value

Parameters

name

The data point name (used in Pie/Donut Charts).

value

The point value. By default, this sets the xvalue.

Declared In

TKChartDataPoint.h

initWithX:Y:

Creates a data point.

- (instancetype __nonnull)initWithX:(id __nullable)xValue Y:(id __nullable)yValue

Parameters

xValue

X axis value.

yValue

Y axis value.

Declared In

TKChartDataPoint.h

initWithX:Y:name:

Creates a data point.

- (instancetype __nonnull)initWithX:(id __nullable)xValue Y:(id __nullable)yValue name:(NSString *__nullable)name

Parameters

xValue

X axis value.

yValue

Y axis value.

name

The data point name (used in Pie/Donut Charts).

Declared In

TKChartDataPoint.h