123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- //
- // AAChartView.h
- // AAChartKit
- //
- // Created by An An on 17/1/16.
- // Copyright © 2017年 An An. All rights reserved.
- // source code ----*** https://github.com/AAChartModel/AAChartKit ***--- source code
- //
- /*
-
- * -------------------------------------------------------------------------------
- *
- * ❀❀❀ WARM TIPS!!! ❀❀❀
- *
- * Please contact me on GitHub,if there are any problems encountered in use.
- * GitHub Issues : https://github.com/AAChartModel/AAChartKit/issues
- * -------------------------------------------------------------------------------
- * And if you want to contribute for this project, please contact me as well
- * GitHub : https://github.com/AAChartModel
- * StackOverflow : https://stackoverflow.com/users/7842508/codeforu
- * JianShu : http://www.jianshu.com/u/f1e6753d4254
- * SegmentFault : https://segmentfault.com/u/huanghunbieguan
- *
- * -------------------------------------------------------------------------------
-
- */
- #import <UIKit/UIKit.h>
- #import "AAChartModel.h"
- #import "AAOptions.h"
- @protocol AAChartViewDidFinishLoadDelegate<NSObject>
- /**
- The delegate method of chart view finish loading
- */
- - (void)AAChartViewDidFinishLoad;
- @end
- @interface AAChartView:UIView
- @property (nonatomic, weak) id<AAChartViewDidFinishLoadDelegate> delegate;
- /**
- Content width of AAChartView
- */
- @property (nonatomic, assign) CGFloat contentWidth;
- /**
- Content height of AAChartView
- */
- @property (nonatomic, assign) CGFloat contentHeight;
- /**
- Hide chart series content or not
- */
- @property (nonatomic, assign) BOOL chartSeriesHidden;
- /**
- Set the chart view background color be clear
- */
- @property (nonatomic, assign) BOOL isClearBackgroundColor;
- //***********************CONFIGURE THE CHART VIEW CONTENT WITH `AACHARTMODEL`***********************//
- /**
- Function of drawing chart view
-
- @param chartModel The instance object of chart model
- */
- - (void)aa_drawChartWithChartModel:(AAChartModel *)chartModel;
- /**
- Function of only refresh the chart data
-
- @param series Series array of AAChartModel instance object
- */
- - (void)aa_onlyRefreshTheChartDataWithChartModelSeries:(NSArray<NSDictionary *> *)series;
- /**
- Function of refreshing whole chart view content
-
- @param chartModel The instance object of chart model
- */
- - (void)aa_refreshChartWithChartModel:(AAChartModel *)chartModel;
- //***********************CONFIGURE THE CHART VIEW CONTENT WITH `AACHARTMODEL`***********************//
- //=======================CONFIGURE THE CHART VIEW CONTENT WITH `AAOPTIONS`=======================//
- /**
- Function of drawing chart view
- @param options The instance object of chart options
- */
- - (void)aa_drawChartWithOptions:(AAOptions *)options;
- /**
- Function of only refresh the chart data
-
- @param series Series array of AAOptions instance object
- */
- - (void)aa_onlyRefreshTheChartDataWithOptionsSeries:(NSArray<NSDictionary *> *)series;
-
- /**
- Function of refreshing whole chart view content
- @param options The instance object of chart options
- */
- - (void)aa_refreshChartWithOptions:(AAOptions *)options;
-
- //=======================CONFIGURE THE CHART VIEW CONTENT WITH `AAOPTIONS`=======================//
- /**
- Show the series element content with index
-
- @param elementIndex element index
- */
- - (void)aa_showTheSeriesElementContentWithSeriesElementIndex:(NSInteger)elementIndex;
- @end
|