forked from tomauty/react-native-chart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
RNChartView.h
75 lines (58 loc) · 2.21 KB
/
RNChartView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// RNChartView.h
// RNChart
//
// Created by Hyun Cho on 4/20/15.
// Copyright (c) 2015 Facebook. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <RCTView.h>
typedef NS_ENUM(NSInteger, RNChartField) {
RNChartFieldX,
RNChartFieldY,
};
@class RCTEventDispatcher;
@interface RNChartView : RCTView
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
- (CGFloat)horizontalScale;
- (CGFloat)minVerticalBound;
- (CGFloat)maxVerticalBound;
@property (nonatomic, copy) NSArray* chartData;
@property (nonatomic, strong) NSArray* xLabels;
@property (nonatomic, assign) CGFloat cornerRadius;
@property (nonatomic, copy) NSString* type;
@property (nonatomic, assign) CGFloat labelFontSize;
@property (nonatomic, strong) UIColor* labelTextColor;
// highlighting
@property (nonatomic, assign) NSNumber* highlightRadius;
@property (nonatomic, copy) NSArray* highlightIndices;
@property (nonatomic, assign) UIColor* highlightColor;
// axis
@property (nonatomic, assign) BOOL showAxis;
@property (nonatomic, assign) BOOL showXAxisLabels;
@property (nonatomic, assign) BOOL showYAxisLabels;
@property (nonatomic, strong) UIColor* axisColor;
@property (nonatomic, assign) CGFloat axisLineWidth;
@property (nonatomic, copy) NSString* xAxisTitle;
@property (nonatomic, copy) NSString* yAxisTitle;
@property (nonatomic, strong) UIColor* axisTitleColor;
@property (nonatomic, assign) CGFloat axisTitleFontSize;
@property (nonatomic, assign) BOOL tightBounds;
// grid
@property (nonatomic, assign) BOOL showGrid;
@property (nonatomic, strong) UIColor* gridColor;
@property (nonatomic, assign) CGFloat gridLineWidth;
@property (nonatomic, assign) BOOL hideHorizontalGridLines;
@property (nonatomic, assign) BOOL hideVerticalGridLines;
@property (nonatomic, assign) int verticalGridStep;
// animation
@property (nonatomic, assign) CGFloat animationDuration;
// touch
@property (nonatomic, assign) CGFloat touchRadius;
// title
@property (nonatomic, copy) NSString* chartTitle;
@property (nonatomic, strong) UIColor* chartTitleColor;
@property (nonatomic, assign) CGFloat chartFontSize;
@property (nonatomic, strong) UIColor* defaultColor;
@property (nonatomic, assign) BOOL handleAsPieChart;
@end