Açıklama Yok

AASeriesElement.m 4.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //
  2. // AASeriesElement.m
  3. // AAChartKit
  4. //
  5. // Created by An An on 17/1/19.
  6. // Copyright © 2017年 An An. xAll rights reserved.
  7. //*************** ...... SOURCE CODE ...... ***************
  8. //***...................................................***
  9. //*** https://github.com/AAChartModel/AAChartKit ***
  10. //*** https://github.com/AAChartModel/AAChartKit-Swift ***
  11. //***...................................................***
  12. //*************** ...... SOURCE CODE ...... ***************
  13. /*
  14. * -------------------------------------------------------------------------------
  15. *
  16. * 🌕 🌖 🌗 🌘 ❀❀❀ WARM TIPS!!! ❀❀❀ 🌑 🌒 🌓 🌔
  17. *
  18. * Please contact me on GitHub,if there are any problems encountered in use.
  19. * GitHub Issues : https://github.com/AAChartModel/AAChartKit/issues
  20. * -------------------------------------------------------------------------------
  21. * And if you want to contribute for this project, please contact me as well
  22. * GitHub : https://github.com/AAChartModel
  23. * StackOverflow : https://stackoverflow.com/users/7842508/codeforu
  24. * JianShu : http://www.jianshu.com/u/f1e6753d4254
  25. * SegmentFault : https://segmentfault.com/u/huanghunbieguan
  26. *
  27. * -------------------------------------------------------------------------------
  28. */
  29. #import "AASeriesElement.h"
  30. @implementation AASeriesElement
  31. - (instancetype)init {
  32. self = [super init];
  33. if (self) {
  34. _allowPointSelect = false;
  35. _colorByPoint = false;
  36. _showInLegend = true;
  37. _visible = true;
  38. }
  39. return self;
  40. }
  41. AAPropSetFuncImplementation(AASeriesElement, NSString *, type);
  42. AAPropSetFuncImplementation(AASeriesElement, BOOL , allowPointSelect);//是否允许在点击数据点标记(markers)、柱子(柱形图)、扇区(饼图)时选中该点,选中的点可以通过 Chart.getSelectedPoints 来获取。 默认是:false.
  43. AAPropSetFuncImplementation(AASeriesElement, NSString *, name);
  44. AAPropSetFuncImplementation(AASeriesElement, NSArray *, data);
  45. AAPropSetFuncImplementation(AASeriesElement, NSString *, color);
  46. AAPropSetFuncImplementation(AASeriesElement, BOOL , colorByPoint);//When using automatic point colors pulled from the options.colors collection, this option determines whether the chart should receive one color per series or one color per point. 默认是:false.
  47. AAPropSetFuncImplementation(AASeriesElement, AAMarker *, marker);
  48. AAPropSetFuncImplementation(AASeriesElement, NSString *, stacking);
  49. AAPropSetFuncImplementation(AASeriesElement, NSString *, dashStyle);
  50. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, threshold);
  51. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, lineWidth);//折线图、曲线图、直方折线图、折线填充图、曲线填充图、直方折线填充图的线条宽度
  52. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, borderWidth)//柱形图、条形图、扇形图等图形的描边宽度
  53. AAPropSetFuncImplementation(AASeriesElement, NSString *, borderColor);//柱形图、条形图、扇形图等图形的描边颜色
  54. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, fillColor);//折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色
  55. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, fillOpacity);//折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色透明度
  56. AAPropSetFuncImplementation(AASeriesElement, NSString *, negativeColor); //The color for the parts of the graph or points that are below the threshold
  57. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, borderRadius);
  58. AAPropSetFuncImplementation(AASeriesElement, NSString *, innerSize);
  59. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, size);
  60. AAPropSetFuncImplementation(AASeriesElement, NSArray *, keys);
  61. AAPropSetFuncImplementation(AASeriesElement, NSNumber *, yAxis);
  62. AAPropSetFuncImplementation(AASeriesElement, AADataLabels*, dataLabels);
  63. AAPropSetFuncImplementation(AASeriesElement, id , step);//是否转变为直方折线图
  64. AAPropSetFuncImplementation(AASeriesElement, NSDictionary *, states);
  65. AAPropSetFuncImplementation(AASeriesElement, BOOL , showInLegend);//Whether to display this particular series or series type in the legend. The default value is true for standalone series, false for linked series. 默认是:true.
  66. AAPropSetFuncImplementation(AASeriesElement, BOOL , visible);//数据列是否显示的状态,可以通过 series.show()、series.hide()、series.setVisible 来改变这个属性
  67. @end