├── .gitignore ├── Cocoa-Charts.podspec ├── LICENSE.txt ├── NOTICE.txt ├── README.md ├── doc └── html │ ├── Classes │ ├── CCSBaseChartView.html │ ├── CCSBaseData.html │ ├── CCSCandleStickChart.html │ ├── CCSCandleStickChartData.html │ ├── CCSGridChart.html │ ├── CCSLineChart.html │ ├── CCSLineData.html │ ├── CCSMACandleStickChart.html │ ├── CCSMAStickChart.html │ ├── CCSPieChart.html │ ├── CCSPizzaChart.html │ ├── CCSSpiderWebChart.html │ ├── CCSStickChart.html │ ├── CCSStickChartData.html │ ├── CCSTitleValue.html │ ├── CCSTitleValueColor.html │ ├── CCSTitleValues.html │ ├── CCSTitleValuesColor.html │ └── CCSTitledLine.html │ ├── css │ ├── styles.css │ └── stylesPrint.css │ ├── hierarchy.html │ ├── img │ ├── button_bar_background.png │ ├── disclosure.png │ ├── disclosure_open.png │ ├── library_background.png │ └── title_background.png │ └── index.html └── src ├── CocoaCharts ├── CCSAreaChart.h ├── CCSAreaChart.m ├── CCSBOLLMASlipCandleStickChart.h ├── CCSBOLLMASlipCandleStickChart.m ├── CCSBandAreaChart.h ├── CCSBandAreaChart.m ├── CCSBaseChartView.h ├── CCSBaseChartView.m ├── CCSBaseData.h ├── CCSBaseData.m ├── CCSCandleStickChart.h ├── CCSCandleStickChart.m ├── CCSCandleStickChartData.h ├── CCSCandleStickChartData.m ├── CCSCocoaCharts.h ├── CCSColoredStickChart.h ├── CCSColoredStickChart.m ├── CCSColoredStickChartData.h ├── CCSColoredStickChartData.m ├── CCSDonutChart.h ├── CCSDonutChart.m ├── CCSGridChart.h ├── CCSGridChart.m ├── CCSHeader.h ├── CCSLineChart.h ├── CCSLineChart.m ├── CCSLineData.h ├── CCSLineData.m ├── CCSMACDChart.h ├── CCSMACDChart.m ├── CCSMACDData.h ├── CCSMACDData.m ├── CCSMACandleStickChart.h ├── CCSMACandleStickChart.m ├── CCSMAColoredStickChart.h ├── CCSMAColoredStickChart.m ├── CCSMASlipCandleStickChart.h ├── CCSMASlipCandleStickChart.m ├── CCSMAStickChart.h ├── CCSMAStickChart.m ├── CCSMinusStickChart.h ├── CCSMinusStickChart.m ├── CCSOHLCVDData.h ├── CCSOHLCVDData.m ├── CCSPieChart.h ├── CCSPieChart.m ├── CCSPizzaChart.h ├── CCSPizzaChart.m ├── CCSRadarChart.h ├── CCSRadarChart.m ├── CCSSlipCandleStickChart.h ├── CCSSlipCandleStickChart.m ├── CCSSlipLineChart.h ├── CCSSlipLineChart.m ├── CCSSlipStickChart.h ├── CCSSlipStickChart.m ├── CCSSpiderWebChart.h ├── CCSSpiderWebChart.m ├── CCSStackedAreaChart.h ├── CCSStackedAreaChart.m ├── CCSStickChart.h ├── CCSStickChart.m ├── CCSStickChartData.h ├── CCSStickChartData.m ├── CCSTickChart.h ├── CCSTickChart.m ├── CCSTitleValue.h ├── CCSTitleValue.m ├── CCSTitleValueColor.h ├── CCSTitleValueColor.m ├── CCSTitleValues.h ├── CCSTitleValues.m ├── CCSTitleValuesColor.h ├── CCSTitleValuesColor.m ├── CCSTitledLine.h └── CCSTitledLine.m ├── CocoaChartsMarketViewController ├── CCSChartsSettingTableViewCell.h ├── CCSChartsSettingTableViewCell.m ├── CCSChartsSettingTableViewCell.xib ├── CCSChartsSettingViewController.h ├── CCSChartsSettingViewController.m ├── CCSChartsSettingViewController.xib ├── CCSGroupChart.h ├── CCSGroupChart.m ├── CCSMarketDetailHorizontalViewController.h ├── CCSMarketDetailHorizontalViewController.m ├── CCSMarketDetailHorizontalViewController.xib ├── CCSMarketDetailTableViewCell.h ├── CCSMarketDetailTableViewCell.m ├── CCSMarketDetailTableViewCell.xib ├── CCSMarketDetailViewController.h ├── CCSMarketDetailViewController.m ├── CCSMarketDetailViewController.xib ├── CCSSettingDetailViewController.h ├── CCSSettingDetailViewController.m ├── CCSSettingDetailViewController.xib ├── CCSSettingResetTableViewCell.h ├── CCSSettingResetTableViewCell.m ├── CCSSettingResetTableViewCell.xib ├── CocoaChartsHeader.h └── Data │ ├── CCSHandicapData.h │ ├── CCSHandicapData.m │ ├── CCSKLineData.h │ ├── CCSKLineData.m │ ├── CCSProductData.h │ ├── CCSProductData.m │ ├── CCSTickData.h │ ├── CCSTickData.m │ ├── CCSTimeData.h │ └── CCSTimeData.m ├── CocoaChartsSample ├── CocoaChartsSample.xcodeproj │ └── project.pbxproj ├── CocoaChartsSample.xcworkspace │ └── contents.xcworkspacedata ├── CocoaChartsSample │ ├── CCSAppDelegate.h │ ├── CCSAppDelegate.m │ ├── CCSAreaChartViewController.h │ ├── CCSAreaChartViewController.m │ ├── CCSBOLLMASlipCandleStickChartViewController.h │ ├── CCSBOLLMASlipCandleStickChartViewController.m │ ├── CCSBandAreaChartViewController.h │ ├── CCSBandAreaChartViewController.m │ ├── CCSCandleStickChartViewController.h │ ├── CCSCandleStickChartViewController.m │ ├── CCSChartsSettingTableViewCell.h │ ├── CCSChartsSettingTableViewCell.m │ ├── CCSChartsSettingTableViewCell.xib │ ├── CCSChartsSettingViewController.h │ ├── CCSChartsSettingViewController.m │ ├── CCSChartsSettingViewController.xib │ ├── CCSColoredStickChartViewController.h │ ├── CCSColoredStickChartViewController.m │ ├── CCSDetailViewController.h │ ├── CCSDetailViewController.m │ ├── CCSDonutChartViewController.h │ ├── CCSDonutChartViewController.m │ ├── CCSGridChartViewController.h │ ├── CCSGridChartViewController.m │ ├── CCSGroupChart.h │ ├── CCSGroupChart.m │ ├── CCSLineChartViewController.h │ ├── CCSLineChartViewController.m │ ├── CCSMACDChartViewController.h │ ├── CCSMACDChartViewController.m │ ├── CCSMACandleStickChartViewController.h │ ├── CCSMACandleStickChartViewController.m │ ├── CCSMASlipCandleStickChartViewController.h │ ├── CCSMASlipCandleStickChartViewController.m │ ├── CCSMAStickChartViewController.h │ ├── CCSMAStickChartViewController.m │ ├── CCSMinusStickChartViewController.h │ ├── CCSMinusStickChartViewController.m │ ├── CCSPieChartViewController.h │ ├── CCSPieChartViewController.m │ ├── CCSPizzaChartViewController.h │ ├── CCSPizzaChartViewController.m │ ├── CCSRadarChartViewController.h │ ├── CCSRadarChartViewController.m │ ├── CCSSamplGroupChartDetailTableViewCell.h │ ├── CCSSamplGroupChartDetailTableViewCell.m │ ├── CCSSamplGroupChartDetailTableViewCell.xib │ ├── CCSSampleGroupChartDemoViewController.h │ ├── CCSSampleGroupChartDemoViewController.m │ ├── CCSSampleGroupChartDemoViewController.xib │ ├── CCSSampleGroupChartHorizontalViewController.h │ ├── CCSSampleGroupChartHorizontalViewController.m │ ├── CCSSampleGroupChartHorizontalViewController.xib │ ├── CCSSettingDetailViewController.h │ ├── CCSSettingDetailViewController.m │ ├── CCSSettingDetailViewController.xib │ ├── CCSSettingResetTableViewCell.h │ ├── CCSSettingResetTableViewCell.m │ ├── CCSSettingResetTableViewCell.xib │ ├── CCSSimpleDemoViewController.h │ ├── CCSSimpleDemoViewController.m │ ├── CCSSlipCandleStickChartViewController.h │ ├── CCSSlipCandleStickChartViewController.m │ ├── CCSSlipLineChartViewController.h │ ├── CCSSlipLineChartViewController.m │ ├── CCSSlipStickChartViewController.h │ ├── CCSSlipStickChartViewController.m │ ├── CCSSpiderWebChartViewController.h │ ├── CCSSpiderWebChartViewController.m │ ├── CCSStackedAreaChartViewController.h │ ├── CCSStackedAreaChartViewController.m │ ├── CCSStickChartViewController.h │ ├── CCSStickChartViewController.m │ ├── CCSViewController.h │ ├── CCSViewController.m │ ├── CocoaChartsSample-Info.plist │ ├── CocoaChartsSample-Prefix.pch │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon_29@2x.png │ │ │ ├── icon_29@3x.png │ │ │ ├── icon_40@2x.png │ │ │ ├── icon_40@3x.png │ │ │ ├── icon_60@2x.png │ │ │ ├── icon_60@3x.png │ │ │ ├── icon_ipad_29.png │ │ │ ├── icon_ipad_29@2x.png │ │ │ ├── icon_ipad_40.png │ │ │ ├── icon_ipad_40@2x.png │ │ │ ├── icon_ipad_76.png │ │ │ ├── icon_ipad_76@2x.png │ │ │ └── icon_ipad_83.5.png │ │ ├── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ ├── 640-1136.png │ │ │ ├── 640-960.png │ │ │ └── Contents.json │ │ └── transparent.imageset │ │ │ ├── Contents.json │ │ │ └── transparent.png │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── CocoaChartsSampleTests │ ├── CocoaChartsSampleTests-Info.plist │ ├── CocoaChartsSampleTests.m │ └── en.lproj │ │ └── InfoPlist.strings ├── Podfile ├── Podfile.lock ├── Pods │ ├── Cocoa-Charts │ │ ├── LICENSE.txt │ │ ├── README.md │ │ └── src │ │ │ └── CocoaCharts │ │ │ ├── CCSAreaChart.h │ │ │ ├── CCSAreaChart.m │ │ │ ├── CCSBOLLMASlipCandleStickChart.h │ │ │ ├── CCSBOLLMASlipCandleStickChart.m │ │ │ ├── CCSBandAreaChart.h │ │ │ ├── CCSBandAreaChart.m │ │ │ ├── CCSBaseChartView.h │ │ │ ├── CCSBaseChartView.m │ │ │ ├── CCSBaseData.h │ │ │ ├── CCSBaseData.m │ │ │ ├── CCSCandleStickChart.h │ │ │ ├── CCSCandleStickChart.m │ │ │ ├── CCSCandleStickChartData.h │ │ │ ├── CCSCandleStickChartData.m │ │ │ ├── CCSCocoaCharts.h │ │ │ ├── CCSColoredStickChart.h │ │ │ ├── CCSColoredStickChart.m │ │ │ ├── CCSColoredStickChartData.h │ │ │ ├── CCSColoredStickChartData.m │ │ │ ├── CCSDonutChart.h │ │ │ ├── CCSDonutChart.m │ │ │ ├── CCSGridChart.h │ │ │ ├── CCSGridChart.m │ │ │ ├── CCSHeader.h │ │ │ ├── CCSLineChart.h │ │ │ ├── CCSLineChart.m │ │ │ ├── CCSLineData.h │ │ │ ├── CCSLineData.m │ │ │ ├── CCSMACDChart.h │ │ │ ├── CCSMACDChart.m │ │ │ ├── CCSMACDData.h │ │ │ ├── CCSMACDData.m │ │ │ ├── CCSMACandleStickChart.h │ │ │ ├── CCSMACandleStickChart.m │ │ │ ├── CCSMAColoredStickChart.h │ │ │ ├── CCSMAColoredStickChart.m │ │ │ ├── CCSMASlipCandleStickChart.h │ │ │ ├── CCSMASlipCandleStickChart.m │ │ │ ├── CCSMAStickChart.h │ │ │ ├── CCSMAStickChart.m │ │ │ ├── CCSMinusStickChart.h │ │ │ ├── CCSMinusStickChart.m │ │ │ ├── CCSOHLCVDData.h │ │ │ ├── CCSOHLCVDData.m │ │ │ ├── CCSPieChart.h │ │ │ ├── CCSPieChart.m │ │ │ ├── CCSPizzaChart.h │ │ │ ├── CCSPizzaChart.m │ │ │ ├── CCSRadarChart.h │ │ │ ├── CCSRadarChart.m │ │ │ ├── CCSSlipCandleStickChart.h │ │ │ ├── CCSSlipCandleStickChart.m │ │ │ ├── CCSSlipLineChart.h │ │ │ ├── CCSSlipLineChart.m │ │ │ ├── CCSSlipStickChart.h │ │ │ ├── CCSSlipStickChart.m │ │ │ ├── CCSSpiderWebChart.h │ │ │ ├── CCSSpiderWebChart.m │ │ │ ├── CCSStackedAreaChart.h │ │ │ ├── CCSStackedAreaChart.m │ │ │ ├── CCSStickChart.h │ │ │ ├── CCSStickChart.m │ │ │ ├── CCSStickChartData.h │ │ │ ├── CCSStickChartData.m │ │ │ ├── CCSTickChart.h │ │ │ ├── CCSTickChart.m │ │ │ ├── CCSTitleValue.h │ │ │ ├── CCSTitleValue.m │ │ │ ├── CCSTitleValueColor.h │ │ │ ├── CCSTitleValueColor.m │ │ │ ├── CCSTitleValues.h │ │ │ ├── CCSTitleValues.m │ │ │ ├── CCSTitleValuesColor.h │ │ │ ├── CCSTitleValuesColor.m │ │ │ ├── CCSTitledLine.h │ │ │ └── CCSTitledLine.m │ ├── Headers │ │ ├── Private │ │ │ ├── Cocoa-Charts │ │ │ │ ├── CCSAreaChart.h │ │ │ │ ├── CCSBOLLMASlipCandleStickChart.h │ │ │ │ ├── CCSBandAreaChart.h │ │ │ │ ├── CCSBaseChartView.h │ │ │ │ ├── CCSBaseData.h │ │ │ │ ├── CCSCandleStickChart.h │ │ │ │ ├── CCSCandleStickChartData.h │ │ │ │ ├── CCSCocoaCharts.h │ │ │ │ ├── CCSColoredStickChart.h │ │ │ │ ├── CCSColoredStickChartData.h │ │ │ │ ├── CCSDonutChart.h │ │ │ │ ├── CCSGridChart.h │ │ │ │ ├── CCSHeader.h │ │ │ │ ├── CCSLineChart.h │ │ │ │ ├── CCSLineData.h │ │ │ │ ├── CCSMACDChart.h │ │ │ │ ├── CCSMACDData.h │ │ │ │ ├── CCSMACandleStickChart.h │ │ │ │ ├── CCSMAColoredStickChart.h │ │ │ │ ├── CCSMASlipCandleStickChart.h │ │ │ │ ├── CCSMAStickChart.h │ │ │ │ ├── CCSMinusStickChart.h │ │ │ │ ├── CCSOHLCVDData.h │ │ │ │ ├── CCSPieChart.h │ │ │ │ ├── CCSPizzaChart.h │ │ │ │ ├── CCSRadarChart.h │ │ │ │ ├── CCSSlipCandleStickChart.h │ │ │ │ ├── CCSSlipLineChart.h │ │ │ │ ├── CCSSlipStickChart.h │ │ │ │ ├── CCSSpiderWebChart.h │ │ │ │ ├── CCSStackedAreaChart.h │ │ │ │ ├── CCSStickChart.h │ │ │ │ ├── CCSStickChartData.h │ │ │ │ ├── CCSTickChart.h │ │ │ │ ├── CCSTitleValue.h │ │ │ │ ├── CCSTitleValueColor.h │ │ │ │ ├── CCSTitleValues.h │ │ │ │ ├── CCSTitleValuesColor.h │ │ │ │ └── CCSTitledLine.h │ │ │ └── JSONModel │ │ │ │ ├── JSONAPI.h │ │ │ │ ├── JSONHTTPClient.h │ │ │ │ ├── JSONKeyMapper.h │ │ │ │ ├── JSONModel+networking.h │ │ │ │ ├── JSONModel.h │ │ │ │ ├── JSONModelArray.h │ │ │ │ ├── JSONModelClassProperty.h │ │ │ │ ├── JSONModelError.h │ │ │ │ ├── JSONModelLib.h │ │ │ │ ├── JSONValueTransformer.h │ │ │ │ └── NSArray+JSONModel.h │ │ └── Public │ │ │ ├── Cocoa-Charts │ │ │ ├── CCSAreaChart.h │ │ │ ├── CCSBOLLMASlipCandleStickChart.h │ │ │ ├── CCSBandAreaChart.h │ │ │ ├── CCSBaseChartView.h │ │ │ ├── CCSBaseData.h │ │ │ ├── CCSCandleStickChart.h │ │ │ ├── CCSCandleStickChartData.h │ │ │ ├── CCSCocoaCharts.h │ │ │ ├── CCSColoredStickChart.h │ │ │ ├── CCSColoredStickChartData.h │ │ │ ├── CCSDonutChart.h │ │ │ ├── CCSGridChart.h │ │ │ ├── CCSHeader.h │ │ │ ├── CCSLineChart.h │ │ │ ├── CCSLineData.h │ │ │ ├── CCSMACDChart.h │ │ │ ├── CCSMACDData.h │ │ │ ├── CCSMACandleStickChart.h │ │ │ ├── CCSMAColoredStickChart.h │ │ │ ├── CCSMASlipCandleStickChart.h │ │ │ ├── CCSMAStickChart.h │ │ │ ├── CCSMinusStickChart.h │ │ │ ├── CCSOHLCVDData.h │ │ │ ├── CCSPieChart.h │ │ │ ├── CCSPizzaChart.h │ │ │ ├── CCSRadarChart.h │ │ │ ├── CCSSlipCandleStickChart.h │ │ │ ├── CCSSlipLineChart.h │ │ │ ├── CCSSlipStickChart.h │ │ │ ├── CCSSpiderWebChart.h │ │ │ ├── CCSStackedAreaChart.h │ │ │ ├── CCSStickChart.h │ │ │ ├── CCSStickChartData.h │ │ │ ├── CCSTickChart.h │ │ │ ├── CCSTitleValue.h │ │ │ ├── CCSTitleValueColor.h │ │ │ ├── CCSTitleValues.h │ │ │ ├── CCSTitleValuesColor.h │ │ │ └── CCSTitledLine.h │ │ │ └── JSONModel │ │ │ ├── JSONAPI.h │ │ │ ├── JSONHTTPClient.h │ │ │ ├── JSONKeyMapper.h │ │ │ ├── JSONModel+networking.h │ │ │ ├── JSONModel.h │ │ │ ├── JSONModelArray.h │ │ │ ├── JSONModelClassProperty.h │ │ │ ├── JSONModelError.h │ │ │ ├── JSONModelLib.h │ │ │ ├── JSONValueTransformer.h │ │ │ └── NSArray+JSONModel.h │ ├── JSONModel │ │ ├── JSONModel │ │ │ ├── JSONModel │ │ │ │ ├── JSONModel.h │ │ │ │ ├── JSONModel.m │ │ │ │ ├── JSONModelArray.h │ │ │ │ ├── JSONModelArray.m │ │ │ │ ├── JSONModelClassProperty.h │ │ │ │ ├── JSONModelClassProperty.m │ │ │ │ ├── JSONModelError.h │ │ │ │ └── JSONModelError.m │ │ │ ├── JSONModelCategories │ │ │ │ ├── NSArray+JSONModel.h │ │ │ │ └── NSArray+JSONModel.m │ │ │ ├── JSONModelLib.h │ │ │ ├── JSONModelNetworking │ │ │ │ ├── JSONAPI.h │ │ │ │ ├── JSONAPI.m │ │ │ │ ├── JSONHTTPClient.h │ │ │ │ ├── JSONHTTPClient.m │ │ │ │ ├── JSONModel+networking.h │ │ │ │ └── JSONModel+networking.m │ │ │ └── JSONModelTransformations │ │ │ │ ├── JSONKeyMapper.h │ │ │ │ ├── JSONKeyMapper.m │ │ │ │ ├── JSONValueTransformer.h │ │ │ │ └── JSONValueTransformer.m │ │ ├── LICENSE_jsonmodel.txt │ │ └── README.md │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Cocoa-Charts │ │ ├── Cocoa-Charts-dummy.m │ │ ├── Cocoa-Charts-prefix.pch │ │ └── Cocoa-Charts.xcconfig │ │ ├── JSONModel │ │ ├── JSONModel-dummy.m │ │ ├── JSONModel-prefix.pch │ │ └── JSONModel.xcconfig │ │ └── Pods │ │ ├── Pods-acknowledgements.markdown │ │ ├── Pods-acknowledgements.plist │ │ ├── Pods-dummy.m │ │ ├── Pods-frameworks.sh │ │ ├── Pods-resources.sh │ │ ├── Pods.debug.xcconfig │ │ └── Pods.release.xcconfig ├── SampleDatas │ ├── 15min.txt │ ├── 1min.txt │ ├── KLineData.txt │ ├── N225.xml │ ├── Tick.txt │ ├── allpdts.txt │ ├── test.plist │ └── time.txt └── TALib │ ├── include │ ├── ta_abstract.h │ ├── ta_common.h │ ├── ta_defs.h │ ├── ta_func.h │ └── ta_libc.h │ └── src │ ├── ta_common │ ├── ta_global.c │ ├── ta_global.h │ ├── ta_magic_nb.h │ ├── ta_memory.h │ ├── ta_pragma.h │ ├── ta_retcode.c │ ├── ta_retcode.csv │ └── ta_version.c │ └── ta_func │ ├── ta_ACOS.c │ ├── ta_AD.c │ ├── ta_ADD.c │ ├── ta_ADOSC.c │ ├── ta_ADX.c │ ├── ta_ADXR.c │ ├── ta_APO.c │ ├── ta_AROON.c │ ├── ta_AROONOSC.c │ ├── ta_ASIN.c │ ├── ta_ATAN.c │ ├── ta_ATR.c │ ├── ta_AVGPRICE.c │ ├── ta_BBANDS.c │ ├── ta_BETA.c │ ├── ta_BOP.c │ ├── ta_CCI.c │ ├── ta_CDL2CROWS.c │ ├── ta_CDL3BLACKCROWS.c │ ├── ta_CDL3INSIDE.c │ ├── ta_CDL3LINESTRIKE.c │ ├── ta_CDL3OUTSIDE.c │ ├── ta_CDL3STARSINSOUTH.c │ ├── ta_CDL3WHITESOLDIERS.c │ ├── ta_CDLABANDONEDBABY.c │ ├── ta_CDLADVANCEBLOCK.c │ ├── ta_CDLBELTHOLD.c │ ├── ta_CDLBREAKAWAY.c │ ├── ta_CDLCLOSINGMARUBOZU.c │ ├── ta_CDLCONCEALBABYSWALL.c │ ├── ta_CDLCOUNTERATTACK.c │ ├── ta_CDLDARKCLOUDCOVER.c │ ├── ta_CDLDOJI.c │ ├── ta_CDLDOJISTAR.c │ ├── ta_CDLDRAGONFLYDOJI.c │ ├── ta_CDLENGULFING.c │ ├── ta_CDLEVENINGDOJISTAR.c │ ├── ta_CDLEVENINGSTAR.c │ ├── ta_CDLGAPSIDESIDEWHITE.c │ ├── ta_CDLGRAVESTONEDOJI.c │ ├── ta_CDLHAMMER.c │ ├── ta_CDLHANGINGMAN.c │ ├── ta_CDLHARAMI.c │ ├── ta_CDLHARAMICROSS.c │ ├── ta_CDLHIGHWAVE.c │ ├── ta_CDLHIKKAKE.c │ ├── ta_CDLHIKKAKEMOD.c │ ├── ta_CDLHOMINGPIGEON.c │ ├── ta_CDLIDENTICAL3CROWS.c │ ├── ta_CDLINNECK.c │ ├── ta_CDLINVERTEDHAMMER.c │ ├── ta_CDLKICKING.c │ ├── ta_CDLKICKINGBYLENGTH.c │ ├── ta_CDLLADDERBOTTOM.c │ ├── ta_CDLLONGLEGGEDDOJI.c │ ├── ta_CDLLONGLINE.c │ ├── ta_CDLMARUBOZU.c │ ├── ta_CDLMATCHINGLOW.c │ ├── ta_CDLMATHOLD.c │ ├── ta_CDLMORNINGDOJISTAR.c │ ├── ta_CDLMORNINGSTAR.c │ ├── ta_CDLONNECK.c │ ├── ta_CDLPIERCING.c │ ├── ta_CDLRICKSHAWMAN.c │ ├── ta_CDLRISEFALL3METHODS.c │ ├── ta_CDLSEPARATINGLINES.c │ ├── ta_CDLSHOOTINGSTAR.c │ ├── ta_CDLSHORTLINE.c │ ├── ta_CDLSPINNINGTOP.c │ ├── ta_CDLSTALLEDPATTERN.c │ ├── ta_CDLSTICKSANDWICH.c │ ├── ta_CDLTAKURI.c │ ├── ta_CDLTASUKIGAP.c │ ├── ta_CDLTHRUSTING.c │ ├── ta_CDLTRISTAR.c │ ├── ta_CDLUNIQUE3RIVER.c │ ├── ta_CDLUPSIDEGAP2CROWS.c │ ├── ta_CDLXSIDEGAP3METHODS.c │ ├── ta_CEIL.c │ ├── ta_CMO.c │ ├── ta_CORREL.c │ ├── ta_COS.c │ ├── ta_COSH.c │ ├── ta_DEMA.c │ ├── ta_DIV.c │ ├── ta_DX.c │ ├── ta_EMA.c │ ├── ta_EXP.c │ ├── ta_FLOOR.c │ ├── ta_HT_DCPERIOD.c │ ├── ta_HT_DCPHASE.c │ ├── ta_HT_PHASOR.c │ ├── ta_HT_SINE.c │ ├── ta_HT_TRENDLINE.c │ ├── ta_HT_TRENDMODE.c │ ├── ta_KAMA.c │ ├── ta_LINEARREG.c │ ├── ta_LINEARREG_ANGLE.c │ ├── ta_LINEARREG_INTERCEPT.c │ ├── ta_LINEARREG_SLOPE.c │ ├── ta_LN.c │ ├── ta_LOG10.c │ ├── ta_MA.c │ ├── ta_MACD.c │ ├── ta_MACDEXT.c │ ├── ta_MACDFIX.c │ ├── ta_MAMA.c │ ├── ta_MAVP.c │ ├── ta_MAX.c │ ├── ta_MAXINDEX.c │ ├── ta_MEDPRICE.c │ ├── ta_MFI.c │ ├── ta_MIDPOINT.c │ ├── ta_MIDPRICE.c │ ├── ta_MIN.c │ ├── ta_MININDEX.c │ ├── ta_MINMAX.c │ ├── ta_MINMAXINDEX.c │ ├── ta_MINUS_DI.c │ ├── ta_MINUS_DM.c │ ├── ta_MOM.c │ ├── ta_MULT.c │ ├── ta_NATR.c │ ├── ta_NVI.c │ ├── ta_OBV.c │ ├── ta_PLUS_DI.c │ ├── ta_PLUS_DM.c │ ├── ta_PPO.c │ ├── ta_PVI.c │ ├── ta_ROC.c │ ├── ta_ROCP.c │ ├── ta_ROCR.c │ ├── ta_ROCR100.c │ ├── ta_RSI.c │ ├── ta_SAR.c │ ├── ta_SAREXT.c │ ├── ta_SIN.c │ ├── ta_SINH.c │ ├── ta_SMA.c │ ├── ta_SQRT.c │ ├── ta_STDDEV.c │ ├── ta_STOCH.c │ ├── ta_STOCHF.c │ ├── ta_STOCHRSI.c │ ├── ta_SUB.c │ ├── ta_SUM.c │ ├── ta_T3.c │ ├── ta_TAN.c │ ├── ta_TANH.c │ ├── ta_TEMA.c │ ├── ta_TRANGE.c │ ├── ta_TRIMA.c │ ├── ta_TRIX.c │ ├── ta_TSF.c │ ├── ta_TYPPRICE.c │ ├── ta_ULTOSC.c │ ├── ta_VAR.c │ ├── ta_WCLPRICE.c │ ├── ta_WILLR.c │ ├── ta_WMA.c │ ├── ta_utility.c │ └── ta_utility.h ├── CocoaChartsUtils ├── CCSStringUtils.h ├── CCSStringUtils.m ├── CCSTALibUtils.h ├── CCSTALibUtils.m ├── NSArray+CCSTACompute.h ├── NSArray+CCSTACompute.m ├── NSString+UIColor.h ├── NSString+UIColor.m ├── NSString+UserDefault.h ├── NSString+UserDefault.m ├── UIView+AutoLayout.h └── UIView+AutoLayout.m ├── TALib ├── include │ ├── ta_abstract.h │ ├── ta_common.h │ ├── ta_defs.h │ ├── ta_func.h │ └── ta_libc.h └── src │ ├── ta_common │ ├── ta_global.c │ ├── ta_global.h │ ├── ta_magic_nb.h │ ├── ta_memory.h │ ├── ta_pragma.h │ ├── ta_retcode.c │ ├── ta_retcode.csv │ └── ta_version.c │ └── ta_func │ ├── ta_ACOS.c │ ├── ta_AD.c │ ├── ta_ADD.c │ ├── ta_ADOSC.c │ ├── ta_ADX.c │ ├── ta_ADXR.c │ ├── ta_APO.c │ ├── ta_AROON.c │ ├── ta_AROONOSC.c │ ├── ta_ASIN.c │ ├── ta_ATAN.c │ ├── ta_ATR.c │ ├── ta_AVGPRICE.c │ ├── ta_BBANDS.c │ ├── ta_BETA.c │ ├── ta_BOP.c │ ├── ta_CCI.c │ ├── ta_CDL2CROWS.c │ ├── ta_CDL3BLACKCROWS.c │ ├── ta_CDL3INSIDE.c │ ├── ta_CDL3LINESTRIKE.c │ ├── ta_CDL3OUTSIDE.c │ ├── ta_CDL3STARSINSOUTH.c │ ├── ta_CDL3WHITESOLDIERS.c │ ├── ta_CDLABANDONEDBABY.c │ ├── ta_CDLADVANCEBLOCK.c │ ├── ta_CDLBELTHOLD.c │ ├── ta_CDLBREAKAWAY.c │ ├── ta_CDLCLOSINGMARUBOZU.c │ ├── ta_CDLCONCEALBABYSWALL.c │ ├── ta_CDLCOUNTERATTACK.c │ ├── ta_CDLDARKCLOUDCOVER.c │ ├── ta_CDLDOJI.c │ ├── ta_CDLDOJISTAR.c │ ├── ta_CDLDRAGONFLYDOJI.c │ ├── ta_CDLENGULFING.c │ ├── ta_CDLEVENINGDOJISTAR.c │ ├── ta_CDLEVENINGSTAR.c │ ├── ta_CDLGAPSIDESIDEWHITE.c │ ├── ta_CDLGRAVESTONEDOJI.c │ ├── ta_CDLHAMMER.c │ ├── ta_CDLHANGINGMAN.c │ ├── ta_CDLHARAMI.c │ ├── ta_CDLHARAMICROSS.c │ ├── ta_CDLHIGHWAVE.c │ ├── ta_CDLHIKKAKE.c │ ├── ta_CDLHIKKAKEMOD.c │ ├── ta_CDLHOMINGPIGEON.c │ ├── ta_CDLIDENTICAL3CROWS.c │ ├── ta_CDLINNECK.c │ ├── ta_CDLINVERTEDHAMMER.c │ ├── ta_CDLKICKING.c │ ├── ta_CDLKICKINGBYLENGTH.c │ ├── ta_CDLLADDERBOTTOM.c │ ├── ta_CDLLONGLEGGEDDOJI.c │ ├── ta_CDLLONGLINE.c │ ├── ta_CDLMARUBOZU.c │ ├── ta_CDLMATCHINGLOW.c │ ├── ta_CDLMATHOLD.c │ ├── ta_CDLMORNINGDOJISTAR.c │ ├── ta_CDLMORNINGSTAR.c │ ├── ta_CDLONNECK.c │ ├── ta_CDLPIERCING.c │ ├── ta_CDLRICKSHAWMAN.c │ ├── ta_CDLRISEFALL3METHODS.c │ ├── ta_CDLSEPARATINGLINES.c │ ├── ta_CDLSHOOTINGSTAR.c │ ├── ta_CDLSHORTLINE.c │ ├── ta_CDLSPINNINGTOP.c │ ├── ta_CDLSTALLEDPATTERN.c │ ├── ta_CDLSTICKSANDWICH.c │ ├── ta_CDLTAKURI.c │ ├── ta_CDLTASUKIGAP.c │ ├── ta_CDLTHRUSTING.c │ ├── ta_CDLTRISTAR.c │ ├── ta_CDLUNIQUE3RIVER.c │ ├── ta_CDLUPSIDEGAP2CROWS.c │ ├── ta_CDLXSIDEGAP3METHODS.c │ ├── ta_CEIL.c │ ├── ta_CMO.c │ ├── ta_CORREL.c │ ├── ta_COS.c │ ├── ta_COSH.c │ ├── ta_DEMA.c │ ├── ta_DIV.c │ ├── ta_DX.c │ ├── ta_EMA.c │ ├── ta_EXP.c │ ├── ta_FLOOR.c │ ├── ta_HT_DCPERIOD.c │ ├── ta_HT_DCPHASE.c │ ├── ta_HT_PHASOR.c │ ├── ta_HT_SINE.c │ ├── ta_HT_TRENDLINE.c │ ├── ta_HT_TRENDMODE.c │ ├── ta_KAMA.c │ ├── ta_LINEARREG.c │ ├── ta_LINEARREG_ANGLE.c │ ├── ta_LINEARREG_INTERCEPT.c │ ├── ta_LINEARREG_SLOPE.c │ ├── ta_LN.c │ ├── ta_LOG10.c │ ├── ta_MA.c │ ├── ta_MACD.c │ ├── ta_MACDEXT.c │ ├── ta_MACDFIX.c │ ├── ta_MAMA.c │ ├── ta_MAVP.c │ ├── ta_MAX.c │ ├── ta_MAXINDEX.c │ ├── ta_MEDPRICE.c │ ├── ta_MFI.c │ ├── ta_MIDPOINT.c │ ├── ta_MIDPRICE.c │ ├── ta_MIN.c │ ├── ta_MININDEX.c │ ├── ta_MINMAX.c │ ├── ta_MINMAXINDEX.c │ ├── ta_MINUS_DI.c │ ├── ta_MINUS_DM.c │ ├── ta_MOM.c │ ├── ta_MULT.c │ ├── ta_NATR.c │ ├── ta_NVI.c │ ├── ta_OBV.c │ ├── ta_PLUS_DI.c │ ├── ta_PLUS_DM.c │ ├── ta_PPO.c │ ├── ta_PVI.c │ ├── ta_ROC.c │ ├── ta_ROCP.c │ ├── ta_ROCR.c │ ├── ta_ROCR100.c │ ├── ta_RSI.c │ ├── ta_SAR.c │ ├── ta_SAREXT.c │ ├── ta_SIN.c │ ├── ta_SINH.c │ ├── ta_SMA.c │ ├── ta_SQRT.c │ ├── ta_STDDEV.c │ ├── ta_STOCH.c │ ├── ta_STOCHF.c │ ├── ta_STOCHRSI.c │ ├── ta_SUB.c │ ├── ta_SUM.c │ ├── ta_T3.c │ ├── ta_TAN.c │ ├── ta_TANH.c │ ├── ta_TEMA.c │ ├── ta_TRANGE.c │ ├── ta_TRIMA.c │ ├── ta_TRIX.c │ ├── ta_TSF.c │ ├── ta_TYPPRICE.c │ ├── ta_ULTOSC.c │ ├── ta_VAR.c │ ├── ta_WCLPRICE.c │ ├── ta_WILLR.c │ ├── ta_WMA.c │ ├── ta_utility.c │ └── ta_utility.h └── build-doc.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | project.xcworkspace 13 | xcuserdata 14 | xcshareddata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ -------------------------------------------------------------------------------- /Cocoa-Charts.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Cocoa-Charts" 3 | s.version = "0.2.1.1" 4 | s.summary = "Cocoa-Charts is an open-source iOS developing framework written in Objective-c on Apple Cocoa SDK." 5 | s.homepage = "https://github.com/limccn/Cocoa-Charts" 6 | s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE.txt" } 7 | s.authors = {"limccn" => "limc.cn@me.com"} 8 | s.platform = :ios, "7.0" 9 | s.ios.deployment_target = "7.0" 10 | s.source = { :git => "https://github.com/limccn/Cocoa-Charts.git", :tag => "v0.2.1.1" } 11 | s.requires_arc = true 12 | s.public_header_files = "src/CocoaCharts/*.{h,hh}" 13 | s.source_files = "src/CocoaCharts/*.{h,hh,m,mm}" 14 | end -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | License rules for contributors 2 | 3 | The “Cocoa-Charts Apache License 2.0” is before all intended to protect all the contributors from any liabilities and should be found at the top of every files where an individual or legal entity put their name. 4 | 5 | The “Cocoa-Charts Apache License 2.0” is also intended to keep the project accessible to a large audience, including commercial and/or closed-source projects. 6 | 7 | Consequently: 8 | GPL / LGPL contribution cannot be part of the Cocoa-Charts package. 9 | 10 | Cocoa-Charts package must remain entirely BSD-Like. 11 | 12 | Individual BSD-Like License for contribution to Cocoa-Charts are not accepted. They do not give additional benefit to the Cocoa-Charts users or to the contributors. All contributions should fall under the same "Cocoa-Charts Apache License 2.0". 13 | 14 | List of contributors is preserved at the top of the source code in the "Contributors/History" sections. Contributors can mention an e-mail or website in the contributors section. -------------------------------------------------------------------------------- /doc/html/css/stylesPrint.css: -------------------------------------------------------------------------------- 1 | 2 | header { 3 | display: none; 4 | } 5 | 6 | div.main-navigation, div.navigation-top { 7 | display: none; 8 | } 9 | 10 | div#overview_contents, div#contents.isShowingTOC, div#contents { 11 | overflow: visible; 12 | position: relative; 13 | top: 0px; 14 | border: none; 15 | left: 0; 16 | } 17 | #tocContainer.isShowingTOC { 18 | display: none; 19 | } 20 | nav { 21 | display: none; 22 | } -------------------------------------------------------------------------------- /doc/html/img/button_bar_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/doc/html/img/button_bar_background.png -------------------------------------------------------------------------------- /doc/html/img/disclosure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/doc/html/img/disclosure.png -------------------------------------------------------------------------------- /doc/html/img/disclosure_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/doc/html/img/disclosure_open.png -------------------------------------------------------------------------------- /doc/html/img/library_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/doc/html/img/library_background.png -------------------------------------------------------------------------------- /doc/html/img/title_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/doc/html/img/title_background.png -------------------------------------------------------------------------------- /src/CocoaCharts/CCSAreaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSAreaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | /*! 24 | CCSAreaChart 25 | 26 | 普通面积图,以X轴为底边绘制面积 27 | */ 28 | @interface CCSAreaChart : CCSLineChart { 29 | CCFloat _areaAlpha; 30 | } 31 | 32 | 33 | /*! 34 | @abstract 35 | 面积填充部分的透明度 36 | */ 37 | @property(assign, nonatomic) CCFloat areaAlpha; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSBandAreaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBandAreaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | /*! 24 | CCSBandAreaChart 25 | 26 | 带状面积图,以两条直线作为边线绘制面积 27 | */ 28 | @interface CCSBandAreaChart : CCSLineChart { 29 | CCFloat _areaAlpha; 30 | } 31 | 32 | /*! 33 | @abstract 34 | 面积填充部分的透明度 35 | */ 36 | @property(assign, nonatomic) CCFloat areaAlpha; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSBaseChartView.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBaseChartView.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSHeader.h" 23 | 24 | /*! 25 | CCSBaseChartView 26 | 27 | Base of all charts 28 | 29 | 全部チャートのベースオブジェクト。 30 | 31 | 所有图表对象的基类 32 | */ 33 | @interface CCSBaseChartView : UIControl { 34 | 35 | } 36 | 37 | /*! 38 | @abstract 39 | Initialize This Object's Properties 40 | オブジェクトのプロパティを初期化 41 | 初始化当前对象的属性 42 | */ 43 | - (void)initProperty; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSBaseData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBaseData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSHeader.h" 23 | 24 | /*! 25 | CCSBaseData 26 | 27 | Entity base of all charts 28 | 29 | 表示用データのベースオブジェクト。 30 | 31 | 所有实体对象的基类 32 | */ 33 | @interface CCSBaseData : NSObject 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSBaseData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBaseData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSBaseData.h" 22 | 23 | @implementation CCSBaseData 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSCandleStickChartData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CandleStickData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSCandleStickChartData.h" 22 | 23 | @implementation CCSCandleStickChartData 24 | 25 | @synthesize open = _open; 26 | @synthesize high = _high; 27 | @synthesize low = _low; 28 | @synthesize close = _close; 29 | @synthesize change = _change; 30 | @synthesize date = _date; 31 | 32 | - (id)init { 33 | self = [super init]; 34 | if (self) { 35 | 36 | } 37 | return self; 38 | } 39 | 40 | - (id)initWithOpen:(CCFloat)open high:(CCFloat)high low:(CCFloat)low close:(CCFloat)close date:(NSString *)date { 41 | self = [self init]; 42 | 43 | if (self) { 44 | self.open = open; 45 | self.high = high; 46 | self.low = low; 47 | self.close = close; 48 | self.date = date; 49 | } 50 | return self; 51 | } 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSCocoaCharts.h: -------------------------------------------------------------------------------- 1 | // 2 | // Cocoa-Charts.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSBaseChartView.h" 22 | #import "CCSGridChart.h" 23 | #import "CCSLineChart.h" 24 | #import "CCSStickChart.h" 25 | #import "CCSCandleStickChart.h" 26 | #import "CCSMAStickChart.h" 27 | #import "CCSMACandleStickChart.h" 28 | #import "CCSPieChart.h" 29 | #import "CCSPizzaChart.h" 30 | #import "CCSSpiderWebChart.h" 31 | #import "CCSMAColoredStickChart.h" 32 | 33 | #import "CCSLineData.h" 34 | #import "CCSTitledLine.h" 35 | #import "CCSTitleValue.h" 36 | #import "CCSTitleValueColor.h" 37 | #import "CCSTitleValues.h" 38 | #import "CCSTitleValuesColor.h" 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSColoredStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSSlipStickChart.h" 22 | 23 | typedef enum { 24 | CCSColoredStickStyleNoBorder = 0, 25 | CCSColoredStickStyleWithBorder = 1, 26 | } CCSColoredStickStyle; 27 | 28 | /*! 29 | CCSColoredStickChart 30 | 31 | 支持多彩填充的柱状图 32 | */ 33 | @interface CCSColoredStickChart : CCSSlipStickChart { 34 | CCSColoredStickStyle _coloredStickStyle; 35 | } 36 | 37 | /*! 38 | 填充的样式 39 | */ 40 | @property(assign, nonatomic) CCSColoredStickStyle coloredStickStyle; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSColoredStickChartData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChartData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSStickChartData.h" 22 | 23 | @interface CCSColoredStickChartData : CCSStickChartData { 24 | UIColor *_fillColor; 25 | UIColor *_borderColor; 26 | } 27 | 28 | @property(strong, nonatomic) UIColor *fillColor; 29 | @property(strong, nonatomic) UIColor *borderColor; 30 | 31 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date color:(UIColor *)color; 32 | 33 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date fill:(UIColor *)fill border:(UIColor *)border; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSColoredStickChartData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChartData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSColoredStickChartData.h" 22 | 23 | @implementation CCSColoredStickChartData 24 | @synthesize borderColor = _borderColor; 25 | @synthesize fillColor = _fillColor; 26 | 27 | 28 | - (id)init { 29 | self = [super init]; 30 | if (self) { 31 | 32 | } 33 | return self; 34 | } 35 | 36 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date color:(UIColor *)color { 37 | self = [self init]; 38 | 39 | if (self) { 40 | self.high = high; 41 | self.low = low; 42 | self.date = date; 43 | self.fillColor = color; 44 | self.borderColor = color; 45 | } 46 | return self; 47 | } 48 | 49 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date fill:(UIColor *)fill border:(UIColor *)border { 50 | self = [self init]; 51 | 52 | if (self) { 53 | self.high = high; 54 | self.low = low; 55 | self.date = date; 56 | self.fillColor = fill; 57 | self.borderColor = border; 58 | } 59 | return self; 60 | } 61 | 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSDonutChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSDonutChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import 23 | #import "CCSPieChart.h" 24 | 25 | /*! 26 | CCSDonutChart 27 | 28 | CCSDonutChart is a kind of graph that display all in a Donut-like graph, each of 29 | the data will get a part of the Donut. 30 | 31 | CCSDonutChartは丸グラフの一種です 32 | 33 | CCSDonutChart是最简单的原型图,形如甜甜圈,因而得名 34 | */ 35 | @interface CCSDonutChart :CCSPieChart { 36 | CCUInt _donutWidth; 37 | } 38 | 39 | /*! 40 | Width of the donut 41 | ドーナツの広さ 42 | 环状图图的宽度 43 | */ 44 | @property(assign, nonatomic) CCUInt donutWidth; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSHeader.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #define PI 3.141592653f 22 | 23 | typedef long long CC_LONG_INT_TYPE; 24 | typedef long CC_INT_TYPE; 25 | typedef unsigned long CC_UINT_TYPE; 26 | typedef double CC_FLOAT_TYPE; 27 | 28 | #define CCInt CC_INT_TYPE 29 | #define CCLongInt CC_LONG_INT_TYPE 30 | #define CCUInt CC_UINT_TYPE 31 | #define CCFloat CC_FLOAT_TYPE 32 | 33 | #define CCIntMax LONG_MAX 34 | #define CCIntMin LONG_MIN 35 | #define CCUIntMax ULONG_MAX 36 | 37 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSLineData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSLineData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSLineData 26 | 27 | Entity data which is use for display a single line in LineChart 28 | 29 | LineChartの線表示用データです。単線です。 30 | 31 | 保存线图表示用单个线的对象、多条线的时候请使用相应的数据结构保存数据 32 | */ 33 | @interface CCSLineData : CCSBaseData { 34 | CCFloat _value; 35 | NSString *_date; 36 | } 37 | 38 | /*! 39 | Value 40 | 値 41 | 值 42 | */ 43 | @property(assign, nonatomic) CCFloat value; 44 | 45 | /*! 46 | Date 47 | 日付 48 | 日期 49 | */ 50 | @property(strong, nonatomic) NSString *date; 51 | 52 | 53 | /*! 54 | @abstract Initialize This Object With Value And Date 55 | オブジェクトを初期化 56 | 初始化当前对象 57 | 58 | @param value Value 59 | 始値 60 | 开盘价 61 | 62 | @param date Date 63 | 日付 64 | 日期 65 | 66 | @result id Initialized Object 67 | 初期化したオブジェクト 68 | 初期化完成对象 69 | */ 70 | - (id)initWithValue:(CCFloat)value date:(NSString *)date; 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSLineData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSLineData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineData.h" 22 | 23 | 24 | @implementation CCSLineData 25 | 26 | @synthesize value = _value; 27 | @synthesize date = _date; 28 | 29 | - (id)init { 30 | self = [super init]; 31 | if (self) { 32 | 33 | } 34 | return self; 35 | } 36 | 37 | - (id)initWithValue:(CCFloat)value date:(NSString *)date { 38 | self = [self init]; 39 | 40 | if (self) { 41 | self.value = value; 42 | self.date = date; 43 | } 44 | return self; 45 | } 46 | 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMACDData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACDData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import "CCSBaseData.h" 23 | 24 | @interface CCSMACDData : CCSBaseData { 25 | CCFloat _dea; 26 | CCFloat _diff; 27 | CCFloat _macd; 28 | NSString *_date; 29 | } 30 | 31 | @property(assign, nonatomic) CCFloat dea; 32 | @property(assign, nonatomic) CCFloat diff; 33 | @property(assign, nonatomic) CCFloat macd; 34 | @property(strong, nonatomic) NSString *date; 35 | 36 | - (id)initWithDea:(CCFloat )dea diff:(CCFloat )diff macd:(CCFloat )macd date:(NSString *)date; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMACDData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACDData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSMACDData.h" 22 | 23 | @implementation CCSMACDData 24 | @synthesize dea = _dea; 25 | @synthesize diff = _diff; 26 | @synthesize macd = _macd; 27 | @synthesize date = _date; 28 | 29 | 30 | - (id)init { 31 | self = [super init]; 32 | if (self) { 33 | 34 | } 35 | return self; 36 | } 37 | 38 | - (id)initWithDea:(CCFloat )dea diff:(CCFloat )diff macd:(CCFloat )macd date:(NSString *)date; { 39 | self = [self init]; 40 | 41 | if (self) { 42 | self.dea = dea; 43 | self.diff = diff; 44 | self.macd = macd; 45 | self.date = date; 46 | } 47 | return self; 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMACandleStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACandleStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSCandleStickChart.h" 23 | 24 | 25 | /*! 26 | CCSMACandleStickChart 27 | 28 | CCSMACandleStickChart is inherits from CCSCandleStickChart which can display 29 | moving average lines on this graph 30 | 31 | CCSMACandleStickChartはグラフの一種です、移動平均線など分析線がこのグラフで表示は可能です。 32 | 33 | CCSMACandleStickChart继承于CCSCandleStickChart的,可以在CCSCandleStickChart基础上 34 | 显示移动平均等各种分析指标数据。 35 | */ 36 | @interface CCSMACandleStickChart : CCSCandleStickChart { 37 | NSArray *_linesData; 38 | } 39 | 40 | /*! 41 | Data for display data 42 | ラインを表示用データ 43 | 表示线条用的数据 44 | */ 45 | @property(strong, nonatomic) NSArray *linesData; 46 | 47 | /*! 48 | @abstract Draw lines to this graph 49 | ラインデータを使いてラインを書く 50 | 使用数据绘制线条 51 | 52 | @param rect the rect of the grid 53 | グリドのrect 54 | 图表的rect 55 | */ 56 | - (void)drawLinesData:(CGRect)rect; 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMAColoredStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMAColoredStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSColoredStickChart.h" 22 | 23 | @interface CCSMAColoredStickChart : CCSColoredStickChart { 24 | NSArray *_linesData; 25 | } 26 | 27 | /*! 28 | Data for display data 29 | ラインを表示用データ 30 | 表示线条用的数据 31 | */ 32 | @property(strong, nonatomic) NSArray *linesData; 33 | 34 | /*! 35 | @abstract Draw lines to this graph 36 | ラインデータを使いてラインを書く 37 | 使用数据绘制线条 38 | 39 | @param rect the rect of the grid 40 | グリドのrect 41 | 图表的rect 42 | */ 43 | - (void)drawLinesData:(CGRect)rect; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMASlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMASlipCandleStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSSlipCandleStickChart.h" 22 | 23 | @interface CCSMASlipCandleStickChart : CCSSlipCandleStickChart { 24 | NSArray *_linesData; 25 | } 26 | 27 | /*! 28 | Data for display data 29 | ラインを表示用データ 30 | 表示线条用的数据 31 | */ 32 | @property(strong, nonatomic) NSArray *linesData; 33 | 34 | /*! 35 | @abstract Draw lines to this graph 36 | ラインデータを使いてラインを書く 37 | 使用数据绘制线条 38 | 39 | @param rect the rect of the grid 40 | グリドのrect 41 | 图表的rect 42 | */ 43 | - (void)drawLinesData:(CGRect)rect; 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMAStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMAStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSStickChart.h" 23 | 24 | /*! 25 | CCSMAStickChart 26 | 27 | CCSMAStickChart is inherits from CCSStickChart which can display 28 | moving average lines on this graph 29 | 30 | CCSMAStickChartはグラフの一種です、移動平均線など分析線がこのグラフで表示は可能です。 31 | 32 | CCSMAStickChart继承于CCSStickChart的,可以在CCSStickChart基础上 33 | 显示移动平均等各种分析指标数据。 34 | */ 35 | @interface CCSMAStickChart : CCSStickChart { 36 | NSArray *_linesData; 37 | } 38 | 39 | /*! 40 | Data for display data 41 | ラインを表示用データ 42 | 表示线条用的数据 43 | */ 44 | @property(strong, nonatomic) NSArray *linesData; 45 | 46 | /*! 47 | @abstract Draw lines to this graph 48 | ラインデータを使いてラインを書く 49 | 使用数据绘制线条 50 | 51 | @param rect the rect of the grid 52 | グリドのrect 53 | 图表的rect 54 | */ 55 | - (void)drawLinesData:(CGRect)rect; 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSMinusStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMinusStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import "CCSStickChart.h" 23 | 24 | @interface CCSMinusStickChart : CCSStickChart { 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSOHLCVDData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSOHLCVDData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 zhourr All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | 25 | @interface CCSOHLCVDData : CCSBaseData 26 | 27 | @property(assign, nonatomic) BOOL endFlag; 28 | 29 | @property(assign, nonatomic) CCFloat open; 30 | @property(assign, nonatomic) CCFloat high; 31 | @property(assign, nonatomic) CCFloat low; 32 | @property(assign, nonatomic) CCFloat close; 33 | @property(assign, nonatomic) CCFloat vol; 34 | @property(copy, nonatomic) NSString *date; 35 | @property(assign, nonatomic) CCFloat current; 36 | @property(assign, nonatomic) CCFloat change; 37 | @property(assign, nonatomic) CCFloat preclose; 38 | 39 | //@property(copy, nonatomic) NSString *open; 40 | //@property(copy, nonatomic) NSString *high; 41 | //@property(copy, nonatomic) NSString *low; 42 | //@property(copy, nonatomic) NSString *close; 43 | //@property(copy, nonatomic) NSString *vol; 44 | //@property(copy, nonatomic) NSString *date; 45 | //@property(copy, nonatomic) NSString *current; 46 | //@property(copy, nonatomic) NSString *change; 47 | //@property(copy, nonatomic) NSString *preclose; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSOHLCVDData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSOHLCVDData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 zhourr All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSOHLCVDData.h" 22 | 23 | @implementation CCSOHLCVDData 24 | 25 | - (id)init{ 26 | self = [super init]; 27 | 28 | if (self) { 29 | self.date = @"00000000000000"; 30 | } 31 | return self; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSPizzaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSPizzaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-11-8. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSPieChart.h" 23 | 24 | /*! 25 | CCSPizzaChart 26 | 27 | CCSPizzaChart is inherts from CCSPieChart which can display selected part aparts 28 | from the pie 29 | 30 | CCSPizzaChartは丸グラフの一種です、選べたデータを丸グラフから一部分割表示は可能です。 31 | 32 | CCSPizzaChart继承于CCSPieChart的,可以在CCSPieChart基础上将选中的部分单独抽出表示的图 33 | */ 34 | @interface CCSPizzaChart : CCSPieChart { 35 | CCUInt _selectedIndex; 36 | CCFloat _offsetLength; 37 | } 38 | 39 | /*! 40 | Selected part of the pie which will take up from the pie 41 | 選べた、分割表示されているデータのインデクス 42 | 被选中的饼图的部分,这部分会从饼中切出 43 | */ 44 | @property(assign, nonatomic) CCUInt selectedIndex; 45 | 46 | /*! 47 | Offset length what is the distance from the center of the pie to the selected part 48 | 丸の中心から、選べた部分の距離 49 | 圆心与被分割出来的那部分的距离 50 | */ 51 | @property(assign, nonatomic) CCFloat offsetLength; 52 | 53 | 54 | /*! 55 | @abstract change the selected part's index 56 | 選べた部分のインデクスを変更する 57 | 变更选中的部分的index 58 | 59 | @param index Selected part's index 60 | 選べた部分のインデクス 61 | 选中的index 62 | */ 63 | - (void)selectPartByIndex:(CCUInt)index; 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSRadarChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSRadarChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-11-8. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import "CCSSpiderWebChart.h" 23 | 24 | @interface CCSRadarChart : CCSSpiderWebChart 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSSlipLineChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSlipLineChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | typedef enum { 24 | CCSLineZoomBaseLineCenter, 25 | CCSLineZoomBaseLineLeft, 26 | CCSLineZoomBaseLineRight 27 | } CCSLineZoomBaseLine; 28 | 29 | @interface CCSSlipLineChart : CCSLineChart { 30 | CCInt _displayNumber; 31 | CCInt _displayFrom; 32 | CCInt _minDisplayNumber; 33 | CCInt _maxDisplayNumber; 34 | // CCUInt _zoomBaseLine; 35 | } 36 | 37 | @property(assign, nonatomic) CCInt displayNumber; 38 | @property(assign, nonatomic) CCInt displayFrom; 39 | @property(assign, nonatomic) CCInt minDisplayNumber; 40 | @property(assign, nonatomic) CCInt maxDisplayNumber; 41 | //@property(assign, nonatomic) CCUInt zoomBaseLine; 42 | 43 | -(CCInt) getDataDisplayNumber; 44 | -(CCInt) getDisplayTo; 45 | -(CCFloat) getStickWidth; 46 | -(CCFloat) getDataStickWidth; 47 | 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSStackedAreaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStackedAreaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | @interface CCSStackedAreaChart : CCSLineChart { 24 | CCFloat _areaAlpha; 25 | } 26 | 27 | @property(assign, nonatomic) CCFloat areaAlpha; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSStickChartData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStickChartData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSStickChartData 26 | 27 | Entity data which is use for display a stick in CCSStickChart 28 | 29 | CCSStickChartのスティック表示用データです、高安値を格納用オブジェクトです。 30 | 31 | CCSStickChart保存柱条表示用的高低值的实体对象 32 | */ 33 | @interface CCSStickChartData : CCSBaseData { 34 | CCFloat _high; 35 | CCFloat _low; 36 | NSString *_date; 37 | } 38 | 39 | /*! 40 | High Value 41 | 高値 42 | 最高价 43 | */ 44 | @property(assign, nonatomic) CCFloat high; 45 | 46 | /*! 47 | Low Value 48 | 低値 49 | 最低价 50 | */ 51 | @property(assign, nonatomic) CCFloat low; 52 | 53 | /*! 54 | Date 55 | 日付 56 | 日期 57 | */ 58 | @property(copy, nonatomic) NSString *date; 59 | 60 | /*! 61 | @abstract Initialize This Object With H/L And Date 62 | オブジェクトを初期化 63 | 初始化当前对象 64 | 65 | @param high High Value 66 | 高値 67 | 最高价 68 | 69 | @param low Low Value 70 | 低値 71 | 最低价 72 | 73 | @param date Date 74 | 日付 75 | 日期 76 | 77 | @result id Initialized Object 78 | 初期化したオブジェクト 79 | 初期化完成对象 80 | 81 | */ 82 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date; 83 | 84 | @end 85 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSStickChartData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStickChartData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSStickChartData.h" 22 | 23 | 24 | @implementation CCSStickChartData 25 | 26 | @synthesize high = _high; 27 | @synthesize low = _low; 28 | @synthesize date = _date; 29 | 30 | - (id)init { 31 | self = [super init]; 32 | if (self) { 33 | 34 | } 35 | return self; 36 | } 37 | 38 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date { 39 | self = [self init]; 40 | 41 | if (self) { 42 | self.high = high; 43 | self.low = low; 44 | self.date = date; 45 | } 46 | return self; 47 | } 48 | 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTickChart.h 3 | // CocoaChartsSample 4 | // 5 | // Created by 李 明成 on 16/4/21. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSSlipLineChart.h" 10 | #import "CCSHeader.h" 11 | 12 | @interface CCSTickChart : CCSSlipLineChart { 13 | NSArray *_longitudeSplitor; 14 | NSArray *_latitudeSplitor; 15 | 16 | CCFloat _lastClose; 17 | 18 | BOOL _limitRangeSupport; 19 | CCFloat _limitMaxValue; 20 | CCFloat _limitMinValue; 21 | 22 | BOOL _enableZoom; 23 | BOOL _enableSlip; 24 | 25 | } 26 | 27 | @property(strong,nonatomic) NSArray *longitudeSplitor; 28 | @property(strong,nonatomic) NSArray *latitudeSplitor; 29 | 30 | @property(assign,nonatomic) CCFloat lastClose; 31 | 32 | @property(assign,nonatomic) BOOL limitRangeSupport; 33 | @property(assign,nonatomic) CCFloat limitMaxValue; 34 | @property(assign,nonatomic) CCFloat limitMinValue; 35 | 36 | 37 | @property(assign,nonatomic) BOOL enableZoom; 38 | @property(assign,nonatomic) BOOL enableSlip; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValue.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValue.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSTitleValue 26 | 27 | Entity data which its value is titled 28 | 29 | 表示用データです、値はタイトル設定は可能です。 30 | 31 | 支持显示标题的值的实体对象 32 | */ 33 | @interface CCSTitleValue : CCSBaseData { 34 | NSString *_title; 35 | CCFloat _value; 36 | } 37 | 38 | /*! 39 | value's title 40 | 値のタイトル 41 | 数据的标题 42 | */ 43 | @property(copy, nonatomic) NSString *title; 44 | 45 | /*! 46 | value 47 | 値 48 | 数据的值 49 | */ 50 | @property(assign, nonatomic) CCFloat value; 51 | 52 | /*! 53 | @abstract Initialize This Object 54 | オブジェクトを初期化 55 | 初始化当前对象 56 | 57 | @param title Title 58 | タイトル 59 | 标题 60 | 61 | @param value Value 62 | 値 63 | 数据的值 64 | 65 | @result id Initialized Object 66 | 初期化したオブジェクト 67 | 初期化完成对象 68 | 69 | */ 70 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value; 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValue.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValue.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValue.h" 22 | 23 | 24 | @implementation CCSTitleValue 25 | 26 | @synthesize title = _title; 27 | @synthesize value = _value; 28 | 29 | - (id)init { 30 | self = [super init]; 31 | if (self) { 32 | 33 | } 34 | return self; 35 | } 36 | 37 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value { 38 | self = [self init]; 39 | 40 | if (self) { 41 | self.title = title; 42 | self.value = value; 43 | } 44 | return self; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValueColor.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValueColor.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSTitleValue.h" 23 | 24 | /*! 25 | CCSTitleValueColor 26 | 27 | Entity data which its value is titled and with color 28 | 29 | 表示用データです、値はタイトルや色の設定は可能です。 30 | 31 | 支持显示标题的值的实体对象 32 | */ 33 | @interface CCSTitleValueColor : CCSTitleValue { 34 | UIColor *_color; 35 | } 36 | 37 | /*! 38 | Color 39 | 色 40 | 颜色 41 | */ 42 | @property(strong, nonatomic) UIColor *color; 43 | 44 | /*! 45 | @abstract Initialize This Object 46 | オブジェクトを初期化 47 | 初始化当前对象 48 | 49 | @param title Title 50 | タイトル 51 | 标题 52 | 53 | @param value Value 54 | 値 55 | 数据的值 56 | 57 | @param color Color 58 | 色 59 | 颜色 60 | 61 | @result id Initialized Object 62 | 初期化したオブジェクト 63 | 初期化完成对象 64 | 65 | */ 66 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value color:(UIColor *)color; 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValueColor.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValueColor.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValueColor.h" 22 | 23 | 24 | @implementation CCSTitleValueColor 25 | 26 | @synthesize color = _color; 27 | 28 | - (id)init { 29 | self = [super init]; 30 | if (self) { 31 | 32 | } 33 | return self; 34 | } 35 | 36 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value color:(UIColor *)color { 37 | self = [super initWithTitle:title value:value]; 38 | 39 | if (self) { 40 | self.color = color; 41 | } 42 | return self; 43 | } 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValues.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValues.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSTitleValues 26 | 27 | Entity data which its values are titled 28 | 29 | 表示用データです、値はタイトル設定は可能です。 30 | 31 | 支持显示标题的值的实体对象 32 | */ 33 | @interface CCSTitleValues : CCSBaseData { 34 | NSString *_title; 35 | NSArray *_values; 36 | } 37 | 38 | /*! 39 | value's title 40 | 値のタイトル 41 | 数据的标题 42 | */ 43 | @property(copy, nonatomic) NSString *title; 44 | 45 | /*! 46 | values 47 | 複数な値 48 | 数据的值列表 49 | */ 50 | @property(strong, nonatomic) NSArray *values; 51 | 52 | 53 | /*! 54 | @abstract Initialize This Object 55 | オブジェクトを初期化 56 | 初始化当前对象 57 | 58 | @param title Title 59 | タイトル 60 | 标题 61 | 62 | @param values Values 63 | 値 64 | 数据的值 65 | 66 | @result id Initialized Object 67 | 初期化したオブジェクト 68 | 初期化完成对象 69 | 70 | */ 71 | - (id)initWithTitle:(NSString *)title values:(NSArray *)values; 72 | 73 | @end 74 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValues.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValues.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValues.h" 22 | 23 | 24 | @implementation CCSTitleValues 25 | 26 | @synthesize title = _title; 27 | @synthesize values = _values; 28 | 29 | - (id)init { 30 | self = [super init]; 31 | if (self) { 32 | 33 | } 34 | return self; 35 | } 36 | 37 | - (id)initWithTitle:(NSString *)title values:(NSArray *)values { 38 | self = [self init]; 39 | 40 | if (self) { 41 | self.title = title; 42 | self.values = values; 43 | } 44 | return self; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValuesColor.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValuesColor.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSTitleValues.h" 23 | 24 | 25 | /*! 26 | CCSTitleValuesColor 27 | 28 | Entity data which its value are titled and with color 29 | 30 | 表示用データです、値はタイトルや色の設定は可能です。 31 | 32 | 支持显示标题的值的实体对象 33 | */ 34 | @interface CCSTitleValuesColor : CCSTitleValues { 35 | UIColor *_color; 36 | } 37 | 38 | /*! 39 | Color 40 | 色 41 | 颜色 42 | */ 43 | @property(strong, nonatomic) UIColor *color; 44 | 45 | /*! 46 | @abstract Initialize This Object 47 | オブジェクトを初期化 48 | 初始化当前对象 49 | 50 | @param title Title 51 | タイトル 52 | 标题 53 | 54 | @param value Value 55 | 値 56 | 数据的值 57 | 58 | @param color Color 59 | 色 60 | 颜色 61 | 62 | @result id Initialized Object 63 | 初期化したオブジェクト 64 | 初期化完成对象 65 | 66 | */ 67 | - (id)initWithTitle:(NSString *)title values:(NSArray *)value color:(UIColor *)color; 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitleValuesColor.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValuesColor.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValuesColor.h" 22 | 23 | 24 | @implementation CCSTitleValuesColor 25 | @synthesize color = _color; 26 | 27 | - (id)init { 28 | self = [super init]; 29 | if (self) { 30 | 31 | } 32 | return self; 33 | } 34 | 35 | - (id)initWithTitle:(NSString *)title values:(NSArray *)value color:(UIColor *)color { 36 | self = [super initWithTitle:title values:value]; 37 | 38 | if (self) { 39 | self.color = color; 40 | } 41 | return self; 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /src/CocoaCharts/CCSTitledLine.m: -------------------------------------------------------------------------------- 1 | // 2 | // TiltledLine.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitledLine.h" 22 | 23 | 24 | @implementation CCSTitledLine 25 | 26 | @synthesize data = _data; 27 | @synthesize color = _color; 28 | @synthesize title = _title; 29 | 30 | - (id)init { 31 | self = [super init]; 32 | if (self) { 33 | 34 | } 35 | return self; 36 | } 37 | 38 | - (id)initWithData:(NSMutableArray *)data color:(UIColor *)color title:(NSString *)title { 39 | self = [self init]; 40 | 41 | if (self) { 42 | self.data = data; 43 | self.color = color; 44 | self.title = title; 45 | } 46 | return self; 47 | } 48 | 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSChartsSettingTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSChartsSettingTableViewCell.h 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | @interface CCSChartsSettingTableViewCell : UITableViewCell 24 | 25 | /** cell 顶部线 */ 26 | @property (weak, nonatomic) IBOutlet UIView *vTopLine; 27 | /** cell 底部线 */ 28 | @property (weak, nonatomic) IBOutlet UIView *vBottomLine; 29 | /** 标题 */ 30 | @property (weak, nonatomic) IBOutlet UILabel *lblTitle; 31 | 32 | /** 33 | * 约束 34 | */ 35 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutConstraintTopLineHeight; 36 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutConstraintBottomLineHeight; 37 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutConstraintTopLineLeft; 38 | 39 | /** 40 | * 设置数据 41 | */ 42 | - (void)setData:(NSDictionary *)data; 43 | 44 | /** 45 | * 设置指标文字 46 | */ 47 | - (void)setIndicatorTextColor:(UIColor *) textColor; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSChartsSettingViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSChartsSettingViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | #import "CCSMarketDetailViewController.h" 24 | 25 | @interface CCSChartsSettingViewController : UIViewController 26 | 27 | /** TableView */ 28 | @property (weak, nonatomic) IBOutlet UITableView *tbSettings; 29 | 30 | /** 主题 */ 31 | @property (assign, nonatomic) ThemeModeType themeMode; 32 | /** 图表ViewController */ 33 | @property (weak, nonatomic) CCSMarketDetailViewController *ctrlChart; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSMarketDetailHorizontalViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMarketDetailHorizontalViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSMarketDetailViewController.h" 22 | 23 | @interface CCSMarketDetailHorizontalViewController : CCSMarketDetailViewController 24 | 25 | /** 商品名 */ 26 | @property (weak, nonatomic) IBOutlet UILabel *lblProductName; 27 | 28 | /** 29 | * 关闭 30 | */ 31 | - (IBAction)closeTouchUpInside:(id)sender; 32 | 33 | /** 前一个viewController */ 34 | @property (weak, nonatomic) CCSMarketDetailViewController *ctrlLast; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSMarketDetailTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMarketDetailTableViewCell.h 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | #import "CCSTickData.h" 24 | 25 | @interface CCSMarketDetailTableViewCell : UITableViewCell 26 | 27 | /** 时间 */ 28 | @property (weak, nonatomic) IBOutlet UILabel *lblTime; 29 | /** 价格 */ 30 | @property (weak, nonatomic) IBOutlet UILabel *lblPrice; 31 | /** 成交量 */ 32 | @property (weak, nonatomic) IBOutlet UILabel *lblCount; 33 | 34 | - (void)setData:(CCSTickData *)data; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSMarketDetailTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMarketDetailTableViewCell.m 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSMarketDetailTableViewCell.h" 22 | 23 | #import "CCSStringUtils.h" 24 | 25 | @implementation CCSMarketDetailTableViewCell 26 | 27 | - (void)awakeFromNib { 28 | // Initialization code 29 | } 30 | 31 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 32 | [super setSelected:selected animated:animated]; 33 | 34 | // Configure the view for the selected state 35 | } 36 | 37 | - (void)setData:(CCSTickData *)data{ 38 | [self.lblTime setText:data.time]; 39 | [self.lblPrice setText:[data.price decimal:0]]; 40 | [self.lblCount setText:data.count]; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSSettingResetTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSettingResetTableViewCell.h 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | @interface CCSSettingResetTableViewCell : UITableViewCell 24 | 25 | /** 重置按钮 */ 26 | @property (weak, nonatomic) IBOutlet UIButton *btnReset; 27 | 28 | - (void)setData:(NSDictionary *)data; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/CCSSettingResetTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSettingResetTableViewCell.m 3 | // Cocoa-Charts 4 | // 5 | // Created by zhourr on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSSettingResetTableViewCell.h" 22 | 23 | @implementation CCSSettingResetTableViewCell 24 | 25 | - (void)awakeFromNib { 26 | [self.btnReset setBackgroundColor:[UIColor redColor]]; 27 | [self.btnReset.layer setCornerRadius:5.0f]; 28 | } 29 | 30 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 31 | [super setSelected:selected animated:animated]; 32 | 33 | // Configure the view for the selected state 34 | } 35 | 36 | - (void)setData:(NSDictionary *)data{ 37 | [self.btnReset setTitle:data[@"title"] forState:UIControlStateNormal]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSHandicapData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSHandicapData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSHandicapData.h" 22 | 23 | @implementation CCSHandicapData 24 | 25 | @end -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSKLineData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSKLineData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | @interface CCSKLineData : NSObject 24 | 25 | /** 是否最后一根 */ 26 | @property (assign, nonatomic) BOOL endFlag; 27 | 28 | /** 开盘价 */ 29 | @property (copy, nonatomic) NSString *openPrice; 30 | /** 高值 */ 31 | @property (copy, nonatomic) NSString *highPrice; 32 | /** 低值 */ 33 | @property (copy, nonatomic) NSString *lowPrice; 34 | /** 收盘价 */ 35 | @property (copy, nonatomic) NSString *closePrice; 36 | /** 成交量 */ 37 | @property (copy, nonatomic) NSString *tradeCount; 38 | /** 日期 */ 39 | @property (copy, nonatomic) NSString *date; 40 | /** 当前价 */ 41 | @property (copy, nonatomic) NSString *currentPrice; 42 | /** 涨跌幅 */ 43 | @property (copy, nonatomic) NSString *changePercent; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSKLineData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSKLineData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSKLineData.h" 22 | 23 | @implementation CCSKLineData 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSProductData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSProductData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | @interface CCSProductData : NSObject 24 | 25 | /** 商品id */ 26 | @property (copy, nonatomic) NSString *producID; 27 | /** 商品名 */ 28 | @property (copy, nonatomic) NSString *productName; 29 | /** 当前价 */ 30 | @property (copy, nonatomic) NSString *currentPrice; 31 | /** 涨跌 */ 32 | @property (copy, nonatomic) NSString *changePrice; 33 | /** 涨跌幅 */ 34 | @property (copy, nonatomic) NSString *changePercent; 35 | /** 买价 */ 36 | @property (copy, nonatomic) NSString *buyPrice; 37 | /** 卖价 */ 38 | @property (copy, nonatomic) NSString *sellPrice; 39 | /** 最高 */ 40 | @property (copy, nonatomic) NSString *highPrice; 41 | /** 最低 */ 42 | @property (copy, nonatomic) NSString *lowPrice; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSProductData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSProductData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSProductData.h" 22 | 23 | @implementation CCSProductData 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSTickData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTickData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | @interface CCSTickData : NSObject 24 | 25 | /** 时间 */ 26 | @property (copy, nonatomic) NSString *time; 27 | /** 价格 */ 28 | @property (copy, nonatomic) NSString *price; 29 | /** 现量 */ 30 | @property (copy, nonatomic) NSString *count; 31 | 32 | @end -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSTickData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTickData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTickData.h" 22 | 23 | @implementation CCSTickData 24 | 25 | @end -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSTimeData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTimeData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | 23 | @interface CCSTimeData : NSObject 24 | 25 | /** 开始时间,计算用 */ 26 | @property (assign, nonatomic) CGFloat startTime; 27 | /** 结束时间,计算用 */ 28 | @property (assign, nonatomic) CGFloat endTime; 29 | /** 分钟,计算用 */ 30 | @property (assign, nonatomic) NSInteger minute; 31 | 32 | /** 开始时间,显示用 */ 33 | @property (copy, nonatomic) NSString *strStartTime; 34 | /** 结束时间,显示用 */ 35 | @property (copy, nonatomic) NSString *strEndTime; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /src/CocoaChartsMarketViewController/Data/CCSTimeData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTimeData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTimeData.h" 22 | 23 | @implementation CCSTimeData 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSAppDelegate.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 2014/03/07. 6 | // Copyright (c) 2014年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSAppDelegate : UIResponder 12 | 13 | @property(strong, nonatomic) UIWindow *window; 14 | @property(strong, nonatomic) UIViewController *viewController; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSAreaChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSAreaChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 11/13/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSViewController.h" 10 | 11 | @interface CCSAreaChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSBOLLMASlipCandleStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBOLLMASlipCandleStickChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/3/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSBOLLMASlipCandleStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSBandAreaChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBandAreaChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 11/15/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSBandAreaChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSCandleStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSCandleStickViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSCandleStickViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSChartsSettingTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSChartsSettingTableViewCell.h 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/11. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSChartsSettingTableViewCell : UITableViewCell 12 | 13 | @property (weak, nonatomic) IBOutlet UIView *vTopLine; 14 | @property (weak, nonatomic) IBOutlet UIView *vBottomLine; 15 | 16 | @property (weak, nonatomic) IBOutlet UILabel *lblTitle; 17 | 18 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutConstraintTopLineHeight; 19 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutConstraintBottomLineHeight; 20 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutConstraintTopLineLeft; 21 | 22 | - (void)setData:(NSDictionary *)data; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSChartsSettingTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSChartsSettingTableViewCell.m 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/11. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSChartsSettingTableViewCell.h" 10 | 11 | @implementation CCSChartsSettingTableViewCell 12 | 13 | - (void)awakeFromNib { 14 | [self.layoutConstraintTopLineHeight setConstant:0.5f]; 15 | [self.layoutConstraintBottomLineHeight setConstant:0.5f]; 16 | } 17 | 18 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 19 | [super setSelected:selected animated:animated]; 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | - (void)setData:(NSDictionary *)data{ 25 | [self.lblTitle setText:data[@"title"]]; 26 | 27 | if ([@"YES" isEqualToString: data[@"hidebottom"]]) { 28 | [self.vBottomLine setHidden:YES]; 29 | }else{ 30 | [self.vBottomLine setHidden:NO]; 31 | } 32 | 33 | if ([@"YES" isEqualToString: data[@"hidetop"]]) { 34 | [self.vTopLine setHidden:YES]; 35 | }else{ 36 | [self.vTopLine setHidden:NO]; 37 | } 38 | 39 | [self.layoutConstraintTopLineLeft setConstant:[data[@"left"] floatValue]]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSChartsSettingViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSChartsSettingViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/11. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "CCSSampleGroupChartDemoViewController.h" 12 | 13 | @interface CCSChartsSettingViewController : UIViewController 14 | 15 | @property (weak, nonatomic) IBOutlet UITableView *tbSettings; 16 | 17 | @property (weak, nonatomic) CCSSampleGroupChartDemoViewController *ctrlChart; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSColoredStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/3/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSColoredStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSDetailViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/26/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSDetailViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSDetailViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSDetailViewController.m 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/26/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSDetailViewController.h" 10 | 11 | @interface CCSDetailViewController () 12 | 13 | @end 14 | 15 | @implementation CCSDetailViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | self.view.backgroundColor = [UIColor whiteColor]; 21 | } 22 | 23 | - (void)viewWillAppear:(BOOL)animated { 24 | [super viewWillAppear:animated]; 25 | 26 | self.title = @"Cocoa-Charts Demo App"; 27 | } 28 | 29 | - (void)didReceiveMemoryWarning { 30 | [super didReceiveMemoryWarning]; 31 | // Dispose of any resources that can be recreated. 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSDonutChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSDonutChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSDonutChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSGridChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSGridChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSGridChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSLineChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSLineChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSLineChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSMACDChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACDChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 11/12/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSViewController.h" 10 | 11 | @interface CCSMACDChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSMACandleStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACandleStickChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSMACandleStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSMASlipCandleStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMASlipCandleStickChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/3/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSMASlipCandleStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSMAStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMAStickChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSMAStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSMinusStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMinusStickChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 11/12/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSMinusStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSPieChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSPieChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSPieChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSPizzaChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSPizzaChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | #import "CCSPizzaChart.h" 11 | 12 | @interface CCSPizzaChartViewController : UIViewController 13 | 14 | @property(retain, nonatomic) CCSPizzaChart *pizzaChart; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSRadarChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSRadarChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 11/13/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSRadarChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSamplGroupChartDetailTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSamplGroupChartDetailTableViewCell.h 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/6. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSSamplGroupChartDetailTableViewCell : UITableViewCell 12 | 13 | @property (weak, nonatomic) IBOutlet UILabel *lblTime; 14 | @property (weak, nonatomic) IBOutlet UILabel *lblPrice; 15 | @property (weak, nonatomic) IBOutlet UILabel *lblCount; 16 | 17 | - (void)setData:(NSDictionary *)data; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSamplGroupChartDetailTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSamplGroupChartDetailTableViewCell.m 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/6. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSSamplGroupChartDetailTableViewCell.h" 10 | 11 | @implementation CCSSamplGroupChartDetailTableViewCell 12 | 13 | - (void)awakeFromNib { 14 | // Initialization code 15 | } 16 | 17 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 18 | [super setSelected:selected animated:animated]; 19 | 20 | // Configure the view for the selected state 21 | } 22 | 23 | - (void)setData:(NSDictionary *)data{ 24 | [self.lblTime setText:data[@"time"]]; 25 | [self.lblPrice setText:data[@"price"]]; 26 | [self.lblCount setText:data[@"count"]]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSampleGroupChartDemoViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSampleGroupChartDemoViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/3/28. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "CCSSettingDetailViewController.h" 12 | 13 | #import "CCSGroupChart.h" 14 | #import "CCSAreaChart.h" 15 | 16 | @interface CCSSampleGroupChartDemoViewController : UIViewController 17 | 18 | @property (weak, nonatomic) IBOutlet UISegmentedControl *segTopChartType; 19 | @property (weak, nonatomic) IBOutlet CCSGroupChart *groupChart; 20 | @property (weak, nonatomic) IBOutlet CCSAreaChart *areachart; 21 | 22 | @property (weak, nonatomic) IBOutlet UILabel *lblTime; 23 | 24 | /** macd */ 25 | @property (assign, nonatomic) NSInteger macdS; 26 | @property (assign, nonatomic) NSInteger macdL; 27 | @property (assign, nonatomic) NSInteger macdM; 28 | 29 | /** ma */ 30 | @property (assign, nonatomic) NSInteger ma1; 31 | @property (assign, nonatomic) NSInteger ma2; 32 | @property (assign, nonatomic) NSInteger ma3; 33 | 34 | /** kdj */ 35 | @property (assign, nonatomic) NSInteger kdjN; 36 | 37 | /** rsi */ 38 | @property (assign, nonatomic) NSInteger rsiN1; 39 | @property (assign, nonatomic) NSInteger rsiN2; 40 | 41 | /** wr */ 42 | @property (assign, nonatomic) NSInteger wrN; 43 | 44 | /** cci */ 45 | @property (assign, nonatomic) NSInteger cciN; 46 | 47 | /** boll */ 48 | @property (assign, nonatomic) NSInteger bollN; 49 | 50 | - (void)updateChartsWithIndicatorType:(IndicatorType) indicatorType; 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSampleGroupChartHorizontalViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSampleGroupChartHorizontalViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/5/6. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSSampleGroupChartDemoViewController.h" 10 | 11 | @interface CCSSampleGroupChartHorizontalViewController : CCSSampleGroupChartDemoViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSampleGroupChartHorizontalViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSampleGroupChartHorizontalViewController.m 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/5/6. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSSampleGroupChartHorizontalViewController.h" 10 | 11 | @interface CCSSampleGroupChartHorizontalViewController () 12 | 13 | @end 14 | 15 | @implementation CCSSampleGroupChartHorizontalViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | 20 | [self.groupChart setOrientationType: GroupChartHorizontalType]; 21 | 22 | // 旋转90度 23 | [self.view setTransform:CGAffineTransformMakeRotation(90 *M_PI / 180.0)]; 24 | } 25 | 26 | - (void)didReceiveMemoryWarning { 27 | [super didReceiveMemoryWarning]; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSettingResetTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSettingResetTableViewCell.h 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/11. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSSettingResetTableViewCell : UITableViewCell 12 | 13 | @property (weak, nonatomic) IBOutlet UIButton *btnReset; 14 | 15 | - (void)setData:(NSDictionary *)data; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSettingResetTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSettingResetTableViewCell.m 3 | // CocoaChartsSample 4 | // 5 | // Created by zhourr_ on 16/4/11. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSSettingResetTableViewCell.h" 10 | 11 | @implementation CCSSettingResetTableViewCell 12 | 13 | - (void)awakeFromNib { 14 | [self.btnReset setBackgroundColor:[UIColor redColor]]; 15 | [self.btnReset.layer setCornerRadius:5.0f]; 16 | } 17 | 18 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 19 | [super setSelected:selected animated:animated]; 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | - (void)setData:(NSDictionary *)data{ 25 | [self.btnReset setTitle:data[@"title"] forState:UIControlStateNormal]; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSlipCandleStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSlipCandleStickChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/3/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSSlipCandleStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSlipLineChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSlipLineChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/6/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSSlipLineChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSlipStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSlipStickChartViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 12/3/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSSlipStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSSpiderWebChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSpiderWebChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSSpiderWebChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSStackedAreaChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStackedAreaViewController.h 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 11/14/13. 6 | // Copyright (c) 2013 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSStackedAreaChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSStickChartViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStickChartViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CCSStickChartViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CCSViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSViewController.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-05-22. 6 | // Copyright (c) 2012 limc.cn All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum { 12 | CCSChartTypeGridChart = 0, 13 | CCSChartTypeLineChart = 1, 14 | CCSChartTypeStickChart = 2, 15 | CCSChartTypeMAStickChart = 3, 16 | CCSChartTypeCandleStickChart = 4, 17 | CCSChartTypeMACandleStickChart = 5, 18 | CCSChartTypePieChart = 6, 19 | CCSChartTypePizzaChart = 7, 20 | CCSChartTypeSpiderWebChart = 8, 21 | CCSChartTypeMinusStickChart = 9, 22 | CCSChartTypeMACDChart = 10, 23 | CCSChartTypeAreaChart = 11, 24 | CCSChartTypeStackedAreaChart = 12, 25 | CCSChartTypeBandAreaChart = 13, 26 | CCSChartTypeRadarChart = 14, 27 | CCSChartTypeSlipStickChart = 15, 28 | CCSChartTypeColoredSlipStickChart = 16, 29 | CCSChartTypeSlipCandleStickChart = 17, 30 | CCSChartTypeMASlipCandleStickChart = 18, 31 | CCSChartTypeBOLLMASlipCandleStickChart = 19, 32 | CCSChartTypeSlipLineChart = 20, 33 | CCSChartTypeDonutChart = 21, 34 | 35 | 36 | } CCSChartType; 37 | 38 | @interface CCSViewController : UIViewController { 39 | UITableView *_tableView; 40 | } 41 | 42 | @property(strong, nonatomic) UITableView *tableView; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CocoaChartsSample-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.2.1.1 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 20160501 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/CocoaChartsSample-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_3_0 10 | #warning "This project uses features only available in iOS SDK 3.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | 18 | #define MARGIN_TOP ([[[UIDevice currentDevice] systemVersion] floatValue] > 6.9 ? 66:0) 19 | #define DEVICE_WIDTH ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) ? 320:690) 20 | #define DEVICE_HEIGHT ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) ? 100:200) 21 | 22 | // IIF 23 | #if !defined(IIF) 24 | #define IIF_IMPL(condition,true_,false_) (condition)?true_:false_ 25 | #define IIF(condition,true_,false_) IIF_IMPL(condition,true_,false_) 26 | #endif 27 | 28 | // 在主线程中执行 29 | #define DO_IN_MAIN_QUEUE(action) dispatch_async(dispatch_get_main_queue(), action) 30 | // 在主线程中延迟执行 31 | #define DO_IN_MAIN_QUEUE_AFTER(seconds, action) dispatch_after(dispatch_time(DISPATCH_TIME_NOW, seconds * NSEC_PER_SEC), dispatch_get_main_queue(), action) 32 | 33 | // 在子线程中执行 34 | #define DO_IN_BACKGROUND(action) dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), action) 35 | // 在子线程中延迟执行 36 | #define DO_IN_BACKGROUND_AFTER(seconds, action) dispatch_after(dispatch_time(DISPATCH_TIME_NOW, seconds * NSEC_PER_SEC), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), action) 37 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_29@2x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_29@3x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_40@2x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_40@3x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_60@2x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_60@3x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_29.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_29@2x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_40.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_40@2x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_76.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_76@2x.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_83.5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/AppIcon.appiconset/icon_ipad_83.5.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/LaunchImage.launchimage/640-1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/LaunchImage.launchimage/640-1136.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/LaunchImage.launchimage/640-960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/LaunchImage.launchimage/640-960.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "filename" : "640-960.png", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "retina4", 15 | "filename" : "640-1136.png", 16 | "minimum-system-version" : "7.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | } 20 | ], 21 | "info" : { 22 | "version" : 1, 23 | "author" : "xcode" 24 | } 25 | } -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/transparent.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "transparent.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/transparent.imageset/transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/CocoaChartsSample/Images.xcassets/transparent.imageset/transparent.png -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CocoaChartsSample 4 | // 5 | // Created by limc on 2014/03/07. 6 | // Copyright (c) 2014年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSAppDelegate.h" 10 | 11 | int main(int argc, char *argv[]) { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([CCSAppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSampleTests/CocoaChartsSampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSampleTests/CocoaChartsSampleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CocoaChartsSampleWithARCTests.m 3 | // CocoaChartsSampleWithARCTests 4 | // 5 | // Created by limc on 2014/03/07. 6 | // Copyright (c) 2014年 limc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CocoaChartsSampleTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CocoaChartsSampleTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/CocoaChartsSampleTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '7.0' 2 | pod 'JSONModel', '~> 1.1.2' 3 | pod ‘Cocoa-Charts’, '~> 0.2.1.1’ 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Cocoa-Charts (0.2.1.1) 3 | - JSONModel (1.1.2) 4 | 5 | DEPENDENCIES: 6 | - Cocoa-Charts (~> 0.2.1.1) 7 | - JSONModel (~> 1.1.2) 8 | 9 | SPEC CHECKSUMS: 10 | Cocoa-Charts: 9592979d0d0352674e0d3b73285b219a54823e15 11 | JSONModel: 216584d0311b053ff714f1d6cb700dbf890847bc 12 | 13 | COCOAPODS: 0.39.0 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSAreaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSAreaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | /*! 24 | CCSAreaChart 25 | 26 | 普通面积图,以X轴为底边绘制面积 27 | */ 28 | @interface CCSAreaChart : CCSLineChart { 29 | CCFloat _areaAlpha; 30 | } 31 | 32 | 33 | /*! 34 | @abstract 35 | 面积填充部分的透明度 36 | */ 37 | @property(assign, nonatomic) CCFloat areaAlpha; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSBandAreaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBandAreaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | /*! 24 | CCSBandAreaChart 25 | 26 | 带状面积图,以两条直线作为边线绘制面积 27 | */ 28 | @interface CCSBandAreaChart : CCSLineChart { 29 | CCFloat _areaAlpha; 30 | } 31 | 32 | /*! 33 | @abstract 34 | 面积填充部分的透明度 35 | */ 36 | @property(assign, nonatomic) CCFloat areaAlpha; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSBaseChartView.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBaseChartView.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSHeader.h" 23 | 24 | /*! 25 | CCSBaseChartView 26 | 27 | Base of all charts 28 | 29 | 全部チャートのベースオブジェクト。 30 | 31 | 所有图表对象的基类 32 | */ 33 | @interface CCSBaseChartView : UIControl { 34 | 35 | } 36 | 37 | /*! 38 | @abstract 39 | Initialize This Object's Properties 40 | オブジェクトのプロパティを初期化 41 | 初始化当前对象的属性 42 | */ 43 | - (void)initProperty; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSBaseData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBaseData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSHeader.h" 23 | 24 | /*! 25 | CCSBaseData 26 | 27 | Entity base of all charts 28 | 29 | 表示用データのベースオブジェクト。 30 | 31 | 所有实体对象的基类 32 | */ 33 | @interface CCSBaseData : NSObject 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSBaseData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSBaseData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSBaseData.h" 22 | 23 | @implementation CCSBaseData 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSCandleStickChartData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CandleStickData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSCandleStickChartData.h" 22 | 23 | @implementation CCSCandleStickChartData 24 | 25 | @synthesize open = _open; 26 | @synthesize high = _high; 27 | @synthesize low = _low; 28 | @synthesize close = _close; 29 | @synthesize change = _change; 30 | @synthesize date = _date; 31 | 32 | - (id)init { 33 | self = [super init]; 34 | if (self) { 35 | 36 | } 37 | return self; 38 | } 39 | 40 | - (id)initWithOpen:(CCFloat)open high:(CCFloat)high low:(CCFloat)low close:(CCFloat)close date:(NSString *)date { 41 | self = [self init]; 42 | 43 | if (self) { 44 | self.open = open; 45 | self.high = high; 46 | self.low = low; 47 | self.close = close; 48 | self.date = date; 49 | } 50 | return self; 51 | } 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSCocoaCharts.h: -------------------------------------------------------------------------------- 1 | // 2 | // Cocoa-Charts.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSBaseChartView.h" 22 | #import "CCSGridChart.h" 23 | #import "CCSLineChart.h" 24 | #import "CCSStickChart.h" 25 | #import "CCSCandleStickChart.h" 26 | #import "CCSMAStickChart.h" 27 | #import "CCSMACandleStickChart.h" 28 | #import "CCSPieChart.h" 29 | #import "CCSPizzaChart.h" 30 | #import "CCSSpiderWebChart.h" 31 | #import "CCSMAColoredStickChart.h" 32 | 33 | #import "CCSLineData.h" 34 | #import "CCSTitledLine.h" 35 | #import "CCSTitleValue.h" 36 | #import "CCSTitleValueColor.h" 37 | #import "CCSTitleValues.h" 38 | #import "CCSTitleValuesColor.h" 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSColoredStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSSlipStickChart.h" 22 | 23 | typedef enum { 24 | CCSColoredStickStyleNoBorder = 0, 25 | CCSColoredStickStyleWithBorder = 1, 26 | } CCSColoredStickStyle; 27 | 28 | /*! 29 | CCSColoredStickChart 30 | 31 | 支持多彩填充的柱状图 32 | */ 33 | @interface CCSColoredStickChart : CCSSlipStickChart { 34 | CCSColoredStickStyle _coloredStickStyle; 35 | } 36 | 37 | /*! 38 | 填充的样式 39 | */ 40 | @property(assign, nonatomic) CCSColoredStickStyle coloredStickStyle; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSColoredStickChartData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChartData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSStickChartData.h" 22 | 23 | @interface CCSColoredStickChartData : CCSStickChartData { 24 | UIColor *_fillColor; 25 | UIColor *_borderColor; 26 | } 27 | 28 | @property(strong, nonatomic) UIColor *fillColor; 29 | @property(strong, nonatomic) UIColor *borderColor; 30 | 31 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date color:(UIColor *)color; 32 | 33 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date fill:(UIColor *)fill border:(UIColor *)border; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSColoredStickChartData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSColoredStickChartData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSColoredStickChartData.h" 22 | 23 | @implementation CCSColoredStickChartData 24 | @synthesize borderColor = _borderColor; 25 | @synthesize fillColor = _fillColor; 26 | 27 | 28 | - (id)init { 29 | self = [super init]; 30 | if (self) { 31 | 32 | } 33 | return self; 34 | } 35 | 36 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date color:(UIColor *)color { 37 | self = [self init]; 38 | 39 | if (self) { 40 | self.high = high; 41 | self.low = low; 42 | self.date = date; 43 | self.fillColor = color; 44 | self.borderColor = color; 45 | } 46 | return self; 47 | } 48 | 49 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date fill:(UIColor *)fill border:(UIColor *)border { 50 | self = [self init]; 51 | 52 | if (self) { 53 | self.high = high; 54 | self.low = low; 55 | self.date = date; 56 | self.fillColor = fill; 57 | self.borderColor = border; 58 | } 59 | return self; 60 | } 61 | 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSDonutChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSDonutChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import 23 | #import "CCSPieChart.h" 24 | 25 | /*! 26 | CCSDonutChart 27 | 28 | CCSDonutChart is a kind of graph that display all in a Donut-like graph, each of 29 | the data will get a part of the Donut. 30 | 31 | CCSDonutChartは丸グラフの一種です 32 | 33 | CCSDonutChart是最简单的原型图,形如甜甜圈,因而得名 34 | */ 35 | @interface CCSDonutChart :CCSPieChart { 36 | CCUInt _donutWidth; 37 | } 38 | 39 | /*! 40 | Width of the donut 41 | ドーナツの広さ 42 | 环状图图的宽度 43 | */ 44 | @property(assign, nonatomic) CCUInt donutWidth; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSHeader.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #define PI 3.141592653f 22 | 23 | typedef long long CC_LONG_INT_TYPE; 24 | typedef long CC_INT_TYPE; 25 | typedef unsigned long CC_UINT_TYPE; 26 | typedef double CC_FLOAT_TYPE; 27 | 28 | #define CCInt CC_INT_TYPE 29 | #define CCLongInt CC_LONG_INT_TYPE 30 | #define CCUInt CC_UINT_TYPE 31 | #define CCFloat CC_FLOAT_TYPE 32 | 33 | #define CCIntMax LONG_MAX 34 | #define CCIntMin LONG_MIN 35 | #define CCUIntMax ULONG_MAX 36 | 37 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSLineData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSLineData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSLineData 26 | 27 | Entity data which is use for display a single line in LineChart 28 | 29 | LineChartの線表示用データです。単線です。 30 | 31 | 保存线图表示用单个线的对象、多条线的时候请使用相应的数据结构保存数据 32 | */ 33 | @interface CCSLineData : CCSBaseData { 34 | CCFloat _value; 35 | NSString *_date; 36 | } 37 | 38 | /*! 39 | Value 40 | 値 41 | 值 42 | */ 43 | @property(assign, nonatomic) CCFloat value; 44 | 45 | /*! 46 | Date 47 | 日付 48 | 日期 49 | */ 50 | @property(strong, nonatomic) NSString *date; 51 | 52 | 53 | /*! 54 | @abstract Initialize This Object With Value And Date 55 | オブジェクトを初期化 56 | 初始化当前对象 57 | 58 | @param value Value 59 | 始値 60 | 开盘价 61 | 62 | @param date Date 63 | 日付 64 | 日期 65 | 66 | @result id Initialized Object 67 | 初期化したオブジェクト 68 | 初期化完成对象 69 | */ 70 | - (id)initWithValue:(CCFloat)value date:(NSString *)date; 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSLineData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSLineData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineData.h" 22 | 23 | 24 | @implementation CCSLineData 25 | 26 | @synthesize value = _value; 27 | @synthesize date = _date; 28 | 29 | - (id)init { 30 | self = [super init]; 31 | if (self) { 32 | 33 | } 34 | return self; 35 | } 36 | 37 | - (id)initWithValue:(CCFloat)value date:(NSString *)date { 38 | self = [self init]; 39 | 40 | if (self) { 41 | self.value = value; 42 | self.date = date; 43 | } 44 | return self; 45 | } 46 | 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMACDData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACDData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import "CCSBaseData.h" 23 | 24 | @interface CCSMACDData : CCSBaseData { 25 | CCFloat _dea; 26 | CCFloat _diff; 27 | CCFloat _macd; 28 | NSString *_date; 29 | } 30 | 31 | @property(assign, nonatomic) CCFloat dea; 32 | @property(assign, nonatomic) CCFloat diff; 33 | @property(assign, nonatomic) CCFloat macd; 34 | @property(strong, nonatomic) NSString *date; 35 | 36 | - (id)initWithDea:(CCFloat )dea diff:(CCFloat )diff macd:(CCFloat )macd date:(NSString *)date; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMACDData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACDData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSMACDData.h" 22 | 23 | @implementation CCSMACDData 24 | @synthesize dea = _dea; 25 | @synthesize diff = _diff; 26 | @synthesize macd = _macd; 27 | @synthesize date = _date; 28 | 29 | 30 | - (id)init { 31 | self = [super init]; 32 | if (self) { 33 | 34 | } 35 | return self; 36 | } 37 | 38 | - (id)initWithDea:(CCFloat )dea diff:(CCFloat )diff macd:(CCFloat )macd date:(NSString *)date; { 39 | self = [self init]; 40 | 41 | if (self) { 42 | self.dea = dea; 43 | self.diff = diff; 44 | self.macd = macd; 45 | self.date = date; 46 | } 47 | return self; 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMACandleStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMACandleStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSCandleStickChart.h" 23 | 24 | 25 | /*! 26 | CCSMACandleStickChart 27 | 28 | CCSMACandleStickChart is inherits from CCSCandleStickChart which can display 29 | moving average lines on this graph 30 | 31 | CCSMACandleStickChartはグラフの一種です、移動平均線など分析線がこのグラフで表示は可能です。 32 | 33 | CCSMACandleStickChart继承于CCSCandleStickChart的,可以在CCSCandleStickChart基础上 34 | 显示移动平均等各种分析指标数据。 35 | */ 36 | @interface CCSMACandleStickChart : CCSCandleStickChart { 37 | NSArray *_linesData; 38 | } 39 | 40 | /*! 41 | Data for display data 42 | ラインを表示用データ 43 | 表示线条用的数据 44 | */ 45 | @property(strong, nonatomic) NSArray *linesData; 46 | 47 | /*! 48 | @abstract Draw lines to this graph 49 | ラインデータを使いてラインを書く 50 | 使用数据绘制线条 51 | 52 | @param rect the rect of the grid 53 | グリドのrect 54 | 图表的rect 55 | */ 56 | - (void)drawLinesData:(CGRect)rect; 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMAColoredStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMAColoredStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 13-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSColoredStickChart.h" 22 | 23 | @interface CCSMAColoredStickChart : CCSColoredStickChart { 24 | NSArray *_linesData; 25 | } 26 | 27 | /*! 28 | Data for display data 29 | ラインを表示用データ 30 | 表示线条用的数据 31 | */ 32 | @property(strong, nonatomic) NSArray *linesData; 33 | 34 | /*! 35 | @abstract Draw lines to this graph 36 | ラインデータを使いてラインを書く 37 | 使用数据绘制线条 38 | 39 | @param rect the rect of the grid 40 | グリドのrect 41 | 图表的rect 42 | */ 43 | - (void)drawLinesData:(CGRect)rect; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMASlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMASlipCandleStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSSlipCandleStickChart.h" 22 | 23 | @interface CCSMASlipCandleStickChart : CCSSlipCandleStickChart { 24 | NSArray *_linesData; 25 | } 26 | 27 | /*! 28 | Data for display data 29 | ラインを表示用データ 30 | 表示线条用的数据 31 | */ 32 | @property(strong, nonatomic) NSArray *linesData; 33 | 34 | /*! 35 | @abstract Draw lines to this graph 36 | ラインデータを使いてラインを書く 37 | 使用数据绘制线条 38 | 39 | @param rect the rect of the grid 40 | グリドのrect 41 | 图表的rect 42 | */ 43 | - (void)drawLinesData:(CGRect)rect; 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMAStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMAStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSStickChart.h" 23 | 24 | /*! 25 | CCSMAStickChart 26 | 27 | CCSMAStickChart is inherits from CCSStickChart which can display 28 | moving average lines on this graph 29 | 30 | CCSMAStickChartはグラフの一種です、移動平均線など分析線がこのグラフで表示は可能です。 31 | 32 | CCSMAStickChart继承于CCSStickChart的,可以在CCSStickChart基础上 33 | 显示移动平均等各种分析指标数据。 34 | */ 35 | @interface CCSMAStickChart : CCSStickChart { 36 | NSArray *_linesData; 37 | } 38 | 39 | /*! 40 | Data for display data 41 | ラインを表示用データ 42 | 表示线条用的数据 43 | */ 44 | @property(strong, nonatomic) NSArray *linesData; 45 | 46 | /*! 47 | @abstract Draw lines to this graph 48 | ラインデータを使いてラインを書く 49 | 使用数据绘制线条 50 | 51 | @param rect the rect of the grid 52 | グリドのrect 53 | 图表的rect 54 | */ 55 | - (void)drawLinesData:(CGRect)rect; 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSMinusStickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSMinusStickChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import "CCSStickChart.h" 23 | 24 | @interface CCSMinusStickChart : CCSStickChart { 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSOHLCVDData.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSOHLCVDData.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 zhourr All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | 25 | @interface CCSOHLCVDData : CCSBaseData 26 | 27 | @property(assign, nonatomic) BOOL endFlag; 28 | 29 | @property(assign, nonatomic) CCFloat open; 30 | @property(assign, nonatomic) CCFloat high; 31 | @property(assign, nonatomic) CCFloat low; 32 | @property(assign, nonatomic) CCFloat close; 33 | @property(assign, nonatomic) CCFloat vol; 34 | @property(copy, nonatomic) NSString *date; 35 | @property(assign, nonatomic) CCFloat current; 36 | @property(assign, nonatomic) CCFloat change; 37 | @property(assign, nonatomic) CCFloat preclose; 38 | 39 | //@property(copy, nonatomic) NSString *open; 40 | //@property(copy, nonatomic) NSString *high; 41 | //@property(copy, nonatomic) NSString *low; 42 | //@property(copy, nonatomic) NSString *close; 43 | //@property(copy, nonatomic) NSString *vol; 44 | //@property(copy, nonatomic) NSString *date; 45 | //@property(copy, nonatomic) NSString *current; 46 | //@property(copy, nonatomic) NSString *change; 47 | //@property(copy, nonatomic) NSString *preclose; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSOHLCVDData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSOHLCVDData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 zhourr All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSOHLCVDData.h" 22 | 23 | @implementation CCSOHLCVDData 24 | 25 | - (id)init{ 26 | self = [super init]; 27 | 28 | if (self) { 29 | self.date = @"00000000000000"; 30 | } 31 | return self; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSPizzaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSPizzaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-11-8. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSPieChart.h" 23 | 24 | /*! 25 | CCSPizzaChart 26 | 27 | CCSPizzaChart is inherts from CCSPieChart which can display selected part aparts 28 | from the pie 29 | 30 | CCSPizzaChartは丸グラフの一種です、選べたデータを丸グラフから一部分割表示は可能です。 31 | 32 | CCSPizzaChart继承于CCSPieChart的,可以在CCSPieChart基础上将选中的部分单独抽出表示的图 33 | */ 34 | @interface CCSPizzaChart : CCSPieChart { 35 | CCUInt _selectedIndex; 36 | CCFloat _offsetLength; 37 | } 38 | 39 | /*! 40 | Selected part of the pie which will take up from the pie 41 | 選べた、分割表示されているデータのインデクス 42 | 被选中的饼图的部分,这部分会从饼中切出 43 | */ 44 | @property(assign, nonatomic) CCUInt selectedIndex; 45 | 46 | /*! 47 | Offset length what is the distance from the center of the pie to the selected part 48 | 丸の中心から、選べた部分の距離 49 | 圆心与被分割出来的那部分的距离 50 | */ 51 | @property(assign, nonatomic) CCFloat offsetLength; 52 | 53 | 54 | /*! 55 | @abstract change the selected part's index 56 | 選べた部分のインデクスを変更する 57 | 变更选中的部分的index 58 | 59 | @param index Selected part's index 60 | 選べた部分のインデクス 61 | 选中的index 62 | */ 63 | - (void)selectPartByIndex:(CCUInt)index; 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSRadarChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSRadarChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-11-8. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | 22 | #import "CCSSpiderWebChart.h" 23 | 24 | @interface CCSRadarChart : CCSSpiderWebChart 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSSlipLineChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSSlipLineChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | typedef enum { 24 | CCSLineZoomBaseLineCenter, 25 | CCSLineZoomBaseLineLeft, 26 | CCSLineZoomBaseLineRight 27 | } CCSLineZoomBaseLine; 28 | 29 | @interface CCSSlipLineChart : CCSLineChart { 30 | CCInt _displayNumber; 31 | CCInt _displayFrom; 32 | CCInt _minDisplayNumber; 33 | CCInt _maxDisplayNumber; 34 | // CCUInt _zoomBaseLine; 35 | } 36 | 37 | @property(assign, nonatomic) CCInt displayNumber; 38 | @property(assign, nonatomic) CCInt displayFrom; 39 | @property(assign, nonatomic) CCInt minDisplayNumber; 40 | @property(assign, nonatomic) CCInt maxDisplayNumber; 41 | //@property(assign, nonatomic) CCUInt zoomBaseLine; 42 | 43 | -(CCInt) getDataDisplayNumber; 44 | -(CCInt) getDisplayTo; 45 | -(CCFloat) getStickWidth; 46 | -(CCFloat) getDataStickWidth; 47 | 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSStackedAreaChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStackedAreaChart.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-24. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSLineChart.h" 22 | 23 | @interface CCSStackedAreaChart : CCSLineChart { 24 | CCFloat _areaAlpha; 25 | } 26 | 27 | @property(assign, nonatomic) CCFloat areaAlpha; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSStickChartData.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSStickChartData.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSStickChartData.h" 22 | 23 | 24 | @implementation CCSStickChartData 25 | 26 | @synthesize high = _high; 27 | @synthesize low = _low; 28 | @synthesize date = _date; 29 | 30 | - (id)init { 31 | self = [super init]; 32 | if (self) { 33 | 34 | } 35 | return self; 36 | } 37 | 38 | - (id)initWithHigh:(CCFloat)high low:(CCFloat)low date:(NSString *)date { 39 | self = [self init]; 40 | 41 | if (self) { 42 | self.high = high; 43 | self.low = low; 44 | self.date = date; 45 | } 46 | return self; 47 | } 48 | 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTickChart.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTickChart.h 3 | // CocoaChartsSample 4 | // 5 | // Created by 李 明成 on 16/4/21. 6 | // Copyright © 2016年 limc. All rights reserved. 7 | // 8 | 9 | #import "CCSSlipLineChart.h" 10 | #import "CCSHeader.h" 11 | 12 | @interface CCSTickChart : CCSSlipLineChart { 13 | NSArray *_longitudeSplitor; 14 | NSArray *_latitudeSplitor; 15 | 16 | CCFloat _lastClose; 17 | 18 | BOOL _limitRangeSupport; 19 | CCFloat _limitMaxValue; 20 | CCFloat _limitMinValue; 21 | 22 | BOOL _enableZoom; 23 | BOOL _enableSlip; 24 | 25 | } 26 | 27 | @property(strong,nonatomic) NSArray *longitudeSplitor; 28 | @property(strong,nonatomic) NSArray *latitudeSplitor; 29 | 30 | @property(assign,nonatomic) CCFloat lastClose; 31 | 32 | @property(assign,nonatomic) BOOL limitRangeSupport; 33 | @property(assign,nonatomic) CCFloat limitMaxValue; 34 | @property(assign,nonatomic) CCFloat limitMinValue; 35 | 36 | 37 | @property(assign,nonatomic) BOOL enableZoom; 38 | @property(assign,nonatomic) BOOL enableSlip; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValue.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValue.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSTitleValue 26 | 27 | Entity data which its value is titled 28 | 29 | 表示用データです、値はタイトル設定は可能です。 30 | 31 | 支持显示标题的值的实体对象 32 | */ 33 | @interface CCSTitleValue : CCSBaseData { 34 | NSString *_title; 35 | CCFloat _value; 36 | } 37 | 38 | /*! 39 | value's title 40 | 値のタイトル 41 | 数据的标题 42 | */ 43 | @property(copy, nonatomic) NSString *title; 44 | 45 | /*! 46 | value 47 | 値 48 | 数据的值 49 | */ 50 | @property(assign, nonatomic) CCFloat value; 51 | 52 | /*! 53 | @abstract Initialize This Object 54 | オブジェクトを初期化 55 | 初始化当前对象 56 | 57 | @param title Title 58 | タイトル 59 | 标题 60 | 61 | @param value Value 62 | 値 63 | 数据的值 64 | 65 | @result id Initialized Object 66 | 初期化したオブジェクト 67 | 初期化完成对象 68 | 69 | */ 70 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value; 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValue.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValue.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValue.h" 22 | 23 | 24 | @implementation CCSTitleValue 25 | 26 | @synthesize title = _title; 27 | @synthesize value = _value; 28 | 29 | - (id)init { 30 | self = [super init]; 31 | if (self) { 32 | 33 | } 34 | return self; 35 | } 36 | 37 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value { 38 | self = [self init]; 39 | 40 | if (self) { 41 | self.title = title; 42 | self.value = value; 43 | } 44 | return self; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValueColor.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValueColor.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSTitleValue.h" 23 | 24 | /*! 25 | CCSTitleValueColor 26 | 27 | Entity data which its value is titled and with color 28 | 29 | 表示用データです、値はタイトルや色の設定は可能です。 30 | 31 | 支持显示标题的值的实体对象 32 | */ 33 | @interface CCSTitleValueColor : CCSTitleValue { 34 | UIColor *_color; 35 | } 36 | 37 | /*! 38 | Color 39 | 色 40 | 颜色 41 | */ 42 | @property(strong, nonatomic) UIColor *color; 43 | 44 | /*! 45 | @abstract Initialize This Object 46 | オブジェクトを初期化 47 | 初始化当前对象 48 | 49 | @param title Title 50 | タイトル 51 | 标题 52 | 53 | @param value Value 54 | 値 55 | 数据的值 56 | 57 | @param color Color 58 | 色 59 | 颜色 60 | 61 | @result id Initialized Object 62 | 初期化したオブジェクト 63 | 初期化完成对象 64 | 65 | */ 66 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value color:(UIColor *)color; 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValueColor.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValueColor.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-26. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValueColor.h" 22 | 23 | 24 | @implementation CCSTitleValueColor 25 | 26 | @synthesize color = _color; 27 | 28 | - (id)init { 29 | self = [super init]; 30 | if (self) { 31 | 32 | } 33 | return self; 34 | } 35 | 36 | - (id)initWithTitle:(NSString *)title value:(CCFloat)value color:(UIColor *)color { 37 | self = [super initWithTitle:title value:value]; 38 | 39 | if (self) { 40 | self.color = color; 41 | } 42 | return self; 43 | } 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValues.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValues.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSBaseData.h" 23 | 24 | /*! 25 | CCSTitleValues 26 | 27 | Entity data which its values are titled 28 | 29 | 表示用データです、値はタイトル設定は可能です。 30 | 31 | 支持显示标题的值的实体对象 32 | */ 33 | @interface CCSTitleValues : CCSBaseData { 34 | NSString *_title; 35 | NSArray *_values; 36 | } 37 | 38 | /*! 39 | value's title 40 | 値のタイトル 41 | 数据的标题 42 | */ 43 | @property(copy, nonatomic) NSString *title; 44 | 45 | /*! 46 | values 47 | 複数な値 48 | 数据的值列表 49 | */ 50 | @property(strong, nonatomic) NSArray *values; 51 | 52 | 53 | /*! 54 | @abstract Initialize This Object 55 | オブジェクトを初期化 56 | 初始化当前对象 57 | 58 | @param title Title 59 | タイトル 60 | 标题 61 | 62 | @param values Values 63 | 値 64 | 数据的值 65 | 66 | @result id Initialized Object 67 | 初期化したオブジェクト 68 | 初期化完成对象 69 | 70 | */ 71 | - (id)initWithTitle:(NSString *)title values:(NSArray *)values; 72 | 73 | @end 74 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValues.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValues.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValues.h" 22 | 23 | 24 | @implementation CCSTitleValues 25 | 26 | @synthesize title = _title; 27 | @synthesize values = _values; 28 | 29 | - (id)init { 30 | self = [super init]; 31 | if (self) { 32 | 33 | } 34 | return self; 35 | } 36 | 37 | - (id)initWithTitle:(NSString *)title values:(NSArray *)values { 38 | self = [self init]; 39 | 40 | if (self) { 41 | self.title = title; 42 | self.values = values; 43 | } 44 | return self; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValuesColor.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValuesColor.h 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import 22 | #import "CCSTitleValues.h" 23 | 24 | 25 | /*! 26 | CCSTitleValuesColor 27 | 28 | Entity data which its value are titled and with color 29 | 30 | 表示用データです、値はタイトルや色の設定は可能です。 31 | 32 | 支持显示标题的值的实体对象 33 | */ 34 | @interface CCSTitleValuesColor : CCSTitleValues { 35 | UIColor *_color; 36 | } 37 | 38 | /*! 39 | Color 40 | 色 41 | 颜色 42 | */ 43 | @property(strong, nonatomic) UIColor *color; 44 | 45 | /*! 46 | @abstract Initialize This Object 47 | オブジェクトを初期化 48 | 初始化当前对象 49 | 50 | @param title Title 51 | タイトル 52 | 标题 53 | 54 | @param value Value 55 | 値 56 | 数据的值 57 | 58 | @param color Color 59 | 色 60 | 颜色 61 | 62 | @result id Initialized Object 63 | 初期化したオブジェクト 64 | 初期化完成对象 65 | 66 | */ 67 | - (id)initWithTitle:(NSString *)title values:(NSArray *)value color:(UIColor *)color; 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitleValuesColor.m: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTitleValuesColor.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-27. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitleValuesColor.h" 22 | 23 | 24 | @implementation CCSTitleValuesColor 25 | @synthesize color = _color; 26 | 27 | - (id)init { 28 | self = [super init]; 29 | if (self) { 30 | 31 | } 32 | return self; 33 | } 34 | 35 | - (id)initWithTitle:(NSString *)title values:(NSArray *)value color:(UIColor *)color { 36 | self = [super initWithTitle:title values:value]; 37 | 38 | if (self) { 39 | self.color = color; 40 | } 41 | return self; 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Cocoa-Charts/src/CocoaCharts/CCSTitledLine.m: -------------------------------------------------------------------------------- 1 | // 2 | // TiltledLine.m 3 | // Cocoa-Charts 4 | // 5 | // Created by limc on 11-10-25. 6 | // Copyright 2011 limc.cn All rights reserved. 7 | // 8 | // Licensed under the Apache License, Version 2.0 (the "License"); 9 | // you may not use this file except in compliance with the License. 10 | // You may obtain a copy of the License at 11 | // 12 | // http://www.apache.org/licenses/LICENSE-2.0 13 | // 14 | // Unless required by applicable law or agreed to in writing, software 15 | // distributed under the License is distributed on an "AS IS" BASIS, 16 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | // See the License for the specific language governing permissions and 18 | // limitations under the License. 19 | // 20 | 21 | #import "CCSTitledLine.h" 22 | 23 | 24 | @implementation CCSTitledLine 25 | 26 | @synthesize data = _data; 27 | @synthesize color = _color; 28 | @synthesize title = _title; 29 | 30 | - (id)init { 31 | self = [super init]; 32 | if (self) { 33 | 34 | } 35 | return self; 36 | } 37 | 38 | - (id)initWithData:(NSMutableArray *)data color:(UIColor *)color title:(NSString *)title { 39 | self = [self init]; 40 | 41 | if (self) { 42 | self.data = data; 43 | self.color = color; 44 | self.title = title; 45 | } 46 | return self; 47 | } 48 | 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSAreaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSAreaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSBOLLMASlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBOLLMASlipCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSBandAreaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBandAreaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSBaseChartView.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBaseChartView.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSBaseData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBaseData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSCandleStickChartData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSCandleStickChartData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSCocoaCharts.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSCocoaCharts.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSColoredStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSColoredStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSColoredStickChartData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSColoredStickChartData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSDonutChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSDonutChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSGridChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSGridChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSHeader.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSHeader.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSLineChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSLineChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSLineData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSLineData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMACDChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMACDChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMACDData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMACDData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMACandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMACandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMAColoredStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMAColoredStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMASlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMASlipCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMAStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMAStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSMinusStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMinusStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSOHLCVDData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSOHLCVDData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSPieChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSPieChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSPizzaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSPizzaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSRadarChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSRadarChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSSlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSlipCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSSlipLineChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSlipLineChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSSlipStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSlipStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSSpiderWebChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSpiderWebChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSStackedAreaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSStackedAreaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSStickChartData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSStickChartData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSTickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSTitleValue.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValue.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSTitleValueColor.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValueColor.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSTitleValues.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValues.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSTitleValuesColor.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValuesColor.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/Cocoa-Charts/CCSTitledLine.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitledLine.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONAPI.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONHTTPClient.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONKeyMapper.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONModel+networking.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONModel.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModel.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONModelArray.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModelArray.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONModelClassProperty.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONModelError.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModelError.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONModelLib.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelLib.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/JSONValueTransformer.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Private/JSONModel/NSArray+JSONModel.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSAreaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSAreaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSBOLLMASlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBOLLMASlipCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSBandAreaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBandAreaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSBaseChartView.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBaseChartView.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSBaseData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSBaseData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSCandleStickChartData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSCandleStickChartData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSCocoaCharts.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSCocoaCharts.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSColoredStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSColoredStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSColoredStickChartData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSColoredStickChartData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSDonutChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSDonutChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSGridChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSGridChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSHeader.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSHeader.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSLineChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSLineChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSLineData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSLineData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMACDChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMACDChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMACDData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMACDData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMACandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMACandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMAColoredStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMAColoredStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMASlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMASlipCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMAStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMAStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSMinusStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSMinusStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSOHLCVDData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSOHLCVDData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSPieChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSPieChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSPizzaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSPizzaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSRadarChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSRadarChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSSlipCandleStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSlipCandleStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSSlipLineChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSlipLineChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSSlipStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSlipStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSSpiderWebChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSSpiderWebChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSStackedAreaChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSStackedAreaChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSStickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSStickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSStickChartData.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSStickChartData.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSTickChart.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTickChart.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSTitleValue.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValue.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSTitleValueColor.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValueColor.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSTitleValues.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValues.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSTitleValuesColor.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitleValuesColor.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/Cocoa-Charts/CCSTitledLine.h: -------------------------------------------------------------------------------- 1 | ../../../Cocoa-Charts/src/CocoaCharts/CCSTitledLine.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONAPI.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelNetworking/JSONAPI.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONHTTPClient.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONKeyMapper.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelTransformations/JSONKeyMapper.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONModel+networking.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelNetworking/JSONModel+networking.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONModel.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModel.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONModelArray.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModelArray.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONModelClassProperty.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModelClassProperty.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONModelError.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModel/JSONModelError.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONModelLib.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelLib.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/JSONValueTransformer.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelTransformations/JSONValueTransformer.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Headers/Public/JSONModel/NSArray+JSONModel.h: -------------------------------------------------------------------------------- 1 | ../../../JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.h -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/JSONModel/JSONModel/JSONModelCategories/NSArray+JSONModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+JSONModel.m 3 | // 4 | // @version 1.0.2 5 | // @author Marin Todorov, http://www.touch-code-magazine.com 6 | // 7 | 8 | // Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. 9 | // This code is distributed under the terms and conditions of the MIT license. 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 14 | // 15 | // The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense 16 | 17 | 18 | #import "NSArray+JSONModel.h" 19 | 20 | @implementation NSArray(JSONModel) 21 | 22 | - (id)modelWithIndexValue:(id)indexValue 23 | { 24 | NSAssert(NO, @"call modelWithIndexValue: on a ConvertOnDemand property, which is defined like that: @property (strong, nonatomic) NSArray* list;"); 25 | return nil; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/JSONModel/JSONModel/JSONModelLib.h: -------------------------------------------------------------------------------- 1 | // 2 | // JSONModelLib.h 3 | // 4 | // @version 1.0.2 5 | // @author Marin Todorov, http://www.touch-code-magazine.com 6 | // 7 | 8 | // Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. 9 | // This code is distributed under the terms and conditions of the MIT license. 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 14 | // 15 | // The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense 16 | 17 | #import 18 | 19 | //JSONModel transformations 20 | #import "JSONValueTransformer.h" 21 | #import "JSONKeyMapper.h" 22 | 23 | //basic JSONModel classes 24 | #import "JSONModelError.h" 25 | #import "JSONModelClassProperty.h" 26 | #import "JSONModel.h" 27 | 28 | //network classes 29 | #import "JSONHTTPClient.h" 30 | #import "JSONModel+networking.h" 31 | #import "JSONAPI.h" 32 | 33 | //models array 34 | #import "NSArray+JSONModel.h" 35 | #import "JSONModelArray.h" 36 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/JSONModel/LICENSE_jsonmodel.txt: -------------------------------------------------------------------------------- 1 | JSONModel 2 | 3 | Copyright (c) 2012-2014 Marin Todorov, Underplot ltd. 4 | This code is distributed under the terms and conditions of the MIT license. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in the 8 | Software without restriction, including without limitation the rights to use, copy, 9 | modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 10 | and to permit persons to whom the Software is furnished to do so, subject to the 11 | following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 17 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 18 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 20 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 21 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | The MIT License in plain English: http://www.touch-code-magazine.com/JSONModel/MITLicense 24 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Cocoa-Charts (0.2.1.1) 3 | - JSONModel (1.1.2) 4 | 5 | DEPENDENCIES: 6 | - Cocoa-Charts (~> 0.2.1.1) 7 | - JSONModel (~> 1.1.2) 8 | 9 | SPEC CHECKSUMS: 10 | Cocoa-Charts: 9592979d0d0352674e0d3b73285b219a54823e15 11 | JSONModel: 216584d0311b053ff714f1d6cb700dbf890847bc 12 | 13 | COCOAPODS: 0.39.0 14 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/Cocoa-Charts/Cocoa-Charts-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Cocoa_Charts : NSObject 3 | @end 4 | @implementation PodsDummy_Cocoa_Charts 5 | @end 6 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/Cocoa-Charts/Cocoa-Charts-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/Cocoa-Charts/Cocoa-Charts.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Cocoa-Charts" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Cocoa-Charts" "${PODS_ROOT}/Headers/Public/JSONModel" 3 | PODS_ROOT = ${SRCROOT} 4 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/JSONModel/JSONModel-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_JSONModel : NSObject 3 | @end 4 | @implementation PodsDummy_JSONModel 5 | @end 6 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/JSONModel/JSONModel-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/JSONModel/JSONModel.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/JSONModel" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Cocoa-Charts" "${PODS_ROOT}/Headers/Public/JSONModel" 3 | PODS_ROOT = ${SRCROOT} 4 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/Pods/Pods.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Cocoa-Charts" "${PODS_ROOT}/Headers/Public/JSONModel" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Cocoa-Charts" -isystem "${PODS_ROOT}/Headers/Public/JSONModel" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Cocoa-Charts" -l"JSONModel" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /src/CocoaChartsSample/Pods/Target Support Files/Pods/Pods.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Cocoa-Charts" "${PODS_ROOT}/Headers/Public/JSONModel" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Cocoa-Charts" -isystem "${PODS_ROOT}/Headers/Public/JSONModel" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Cocoa-Charts" -l"JSONModel" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /src/CocoaChartsSample/SampleDatas/allpdts.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limccn/Cocoa-Charts/dff957644b8840cdf839e42d2c3135b5ef849680/src/CocoaChartsSample/SampleDatas/allpdts.txt -------------------------------------------------------------------------------- /src/CocoaChartsSample/TALib/src/ta_common/ta_magic_nb.h: -------------------------------------------------------------------------------- 1 | #ifndef TA_MAGIC_NB_H 2 | #define TA_MAGIC_NB_H 3 | 4 | /* Many allocated structures contains a magic number. 5 | * 6 | * These numbers are used solely to make sure that when a pointer is 7 | * provided, it is really pointing on the expected type of data. 8 | * It helps also for the detection of memory corruption. 9 | * This mechanism is simple, but add a non-negligeable level of 10 | * reliability at a very low cost (speed/memory wise). 11 | */ 12 | #define TA_FUNC_DEF_MAGIC_NB 0xA201B201 13 | #define TA_PARAM_HOLDER_PRIV_MAGIC_NB 0xA202B202 14 | #define TA_LIBC_PRIV_MAGIC_NB 0xA203B203 15 | #define TA_UDBASE_MAGIC_NB 0xA204B204 16 | #define TA_CATEGORY_TABLE_MAGIC_NB 0xA205B205 17 | #define TA_SYMBOL_TABLE_MAGIC_NB 0xA206B206 18 | #define TA_WEBPAGE_MAGIC_NB 0xA207B207 19 | #define TA_STREAM_MAGIC_NB 0xA208B208 20 | #define TA_STREAM_ACCESS_MAGIC_NB 0xA209B209 21 | #define TA_YAHOO_IDX_MAGIC_NB 0xA20AB20A 22 | #define TA_STRING_TABLE_GROUP_MAGIC_NB 0xA20BB20B 23 | #define TA_STRING_TABLE_FUNC_MAGIC_NB 0xA20CB20C 24 | #define TA_MARKET_PAGE_MAGIC_NB 0xA20DB20D 25 | #define TA_TRADELOGPRIV_MAGIC_NB 0xA20EB20E 26 | #define TA_PMPRIV_MAGIC_NB 0xA20FB20F 27 | #define TA_PMREPORT_MAGIC_NB 0xA210B210 28 | #define TA_TRADEREPORT_MAGIC_NB 0xA211B211 29 | #define TA_HISTORY_MAGIC_NB 0xA212B212 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/CocoaChartsSample/TALib/src/ta_common/ta_retcode.csv: -------------------------------------------------------------------------------- 1 | 0,TA_SUCCESS,No error 2 | 1,TA_LIB_NOT_INITIALIZE,TA_Initialize was not sucessfully called 3 | 2,TA_BAD_PARAM,A parameter is out of range 4 | 3,TA_ALLOC_ERR,Possibly out-of-memory 5 | 4,TA_GROUP_NOT_FOUND,No Info 6 | 5,TA_FUNC_NOT_FOUND,No Info 7 | 6,TA_INVALID_HANDLE,No Info 8 | 7,TA_INVALID_PARAM_HOLDER,No Info 9 | 8,TA_INVALID_PARAM_HOLDER_TYPE,No Info 10 | 9,TA_INVALID_PARAM_FUNCTION,No Info 11 | 10,TA_INPUT_NOT_ALL_INITIALIZE,No Info 12 | 11,TA_OUTPUT_NOT_ALL_INITIALIZE,No Info 13 | 12,TA_OUT_OF_RANGE_START_INDEX,No Info 14 | 13,TA_OUT_OF_RANGE_END_INDEX,No Info 15 | 14,TA_INVALID_LIST_TYPE,No Info 16 | 15,TA_BAD_OBJECT,No Info 17 | 16,TA_NOT_SUPPORTED,No Info 18 | 5000,TA_INTERNAL_ERROR,No Info 19 | -------------------------------------------------------------------------------- /src/CocoaChartsUtils/CCSTALibUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // CCSTALibUtils.h 3 | // CocoaChartsUtils 4 | // 5 | // Created by lengyc on 12/27/13. 6 | // 7 | // Copyright (C) 2013 ShangHai Okasan-Huada computer system CO.,LTD. All Rights Reserved. 8 | // See LICENSE.txt for this file’s licensing information 9 | // 10 | 11 | #import 12 | 13 | void NSArrayToCArray(NSArray *array, double outCArray[]); 14 | 15 | NSArray *CArrayToNSArray(const double inCArray[], int length, int outBegIdx, int outNBElement); 16 | 17 | NSArray *CArrayToNSArrayWithParameter(const double inCArray[], int length, int outBegIdx, int outNBElement, double parmeter); 18 | 19 | void freeAndSetNULL(void *ptr); 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/CocoaChartsUtils/NSString+UIColor.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+UIColor.h 3 | // CocoaChartsUtils 4 | // 5 | // Created by zhourr on 12/27/13. 6 | // 7 | // Copyright (C) 2013 ShangHai Okasan-Huada computer system CO.,LTD. All Rights Reserved. 8 | // See LICENSE.txt for this file’s licensing information 9 | // 10 | 11 | #import 12 | 13 | @interface NSString (UIColor) 14 | 15 | /** 16 | * 将16进制rgb转换为uicolor,暂时不支持透明度 17 | */ 18 | - (UIColor *)str2Color; 19 | 20 | /** 21 | * 将16进制rgb转换为uicolor 22 | * alpha 透明度 23 | */ 24 | - (UIColor *)str2ColorWithAlpha:(float)alpha; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /src/CocoaChartsUtils/NSString+UserDefault.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+UserDefault.h 3 | // CocoaChartsUtils 4 | // 5 | // Created by zhourr on 12/27/13. 6 | // 7 | // Copyright (C) 2013 ShangHai Okasan-Huada computer system CO.,LTD. All Rights Reserved. 8 | // See LICENSE.txt for this file’s licensing information 9 | // 10 | 11 | #import 12 | 13 | #define MACD_S @"MACD_S" 14 | #define MACD_L @"MACD_L" 15 | #define MACD_M @"MACD_M" 16 | 17 | #define MA1 @"MA1" 18 | #define MA2 @"MA2" 19 | #define MA3 @"MA3" 20 | 21 | #define VMA1 @"VMA1" 22 | #define VMA2 @"VMA2" 23 | #define VMA3 @"VMA3" 24 | 25 | #define KDJ_N @"KDJ_N" 26 | 27 | #define RSI_N1 @"RSI_N1" 28 | #define RSI_N2 @"RSI_N2" 29 | 30 | #define WR_N @"WR_N" 31 | 32 | #define CCI_N @"CCI_N" 33 | 34 | #define BOLL_N @"BOLL_N" 35 | 36 | @interface NSString (UserDefault) 37 | 38 | /** 39 | * NSUserDefaults通用方法(NSData 40 | */ 41 | - (void)setUserDefaultWithData: (NSData *)value; 42 | - (NSData *)getUserDefaultData; 43 | 44 | /** 45 | * NSUserDefaults通用方法(NSString 46 | */ 47 | - (void)setUserDefaultWithString: (NSString *)string; 48 | - (NSString *)getUserDefaultString; 49 | 50 | /** 51 | * NSUserDefaults通用方法(NSObject 52 | */ 53 | - (void)setUserDefaultWithObject: (NSObject *)object; 54 | 55 | - (NSObject *)getUserDefaultObject; 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /src/TALib/src/ta_common/ta_magic_nb.h: -------------------------------------------------------------------------------- 1 | #ifndef TA_MAGIC_NB_H 2 | #define TA_MAGIC_NB_H 3 | 4 | /* Many allocated structures contains a magic number. 5 | * 6 | * These numbers are used solely to make sure that when a pointer is 7 | * provided, it is really pointing on the expected type of data. 8 | * It helps also for the detection of memory corruption. 9 | * This mechanism is simple, but add a non-negligeable level of 10 | * reliability at a very low cost (speed/memory wise). 11 | */ 12 | #define TA_FUNC_DEF_MAGIC_NB 0xA201B201 13 | #define TA_PARAM_HOLDER_PRIV_MAGIC_NB 0xA202B202 14 | #define TA_LIBC_PRIV_MAGIC_NB 0xA203B203 15 | #define TA_UDBASE_MAGIC_NB 0xA204B204 16 | #define TA_CATEGORY_TABLE_MAGIC_NB 0xA205B205 17 | #define TA_SYMBOL_TABLE_MAGIC_NB 0xA206B206 18 | #define TA_WEBPAGE_MAGIC_NB 0xA207B207 19 | #define TA_STREAM_MAGIC_NB 0xA208B208 20 | #define TA_STREAM_ACCESS_MAGIC_NB 0xA209B209 21 | #define TA_YAHOO_IDX_MAGIC_NB 0xA20AB20A 22 | #define TA_STRING_TABLE_GROUP_MAGIC_NB 0xA20BB20B 23 | #define TA_STRING_TABLE_FUNC_MAGIC_NB 0xA20CB20C 24 | #define TA_MARKET_PAGE_MAGIC_NB 0xA20DB20D 25 | #define TA_TRADELOGPRIV_MAGIC_NB 0xA20EB20E 26 | #define TA_PMPRIV_MAGIC_NB 0xA20FB20F 27 | #define TA_PMREPORT_MAGIC_NB 0xA210B210 28 | #define TA_TRADEREPORT_MAGIC_NB 0xA211B211 29 | #define TA_HISTORY_MAGIC_NB 0xA212B212 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/TALib/src/ta_common/ta_retcode.csv: -------------------------------------------------------------------------------- 1 | 0,TA_SUCCESS,No error 2 | 1,TA_LIB_NOT_INITIALIZE,TA_Initialize was not sucessfully called 3 | 2,TA_BAD_PARAM,A parameter is out of range 4 | 3,TA_ALLOC_ERR,Possibly out-of-memory 5 | 4,TA_GROUP_NOT_FOUND,No Info 6 | 5,TA_FUNC_NOT_FOUND,No Info 7 | 6,TA_INVALID_HANDLE,No Info 8 | 7,TA_INVALID_PARAM_HOLDER,No Info 9 | 8,TA_INVALID_PARAM_HOLDER_TYPE,No Info 10 | 9,TA_INVALID_PARAM_FUNCTION,No Info 11 | 10,TA_INPUT_NOT_ALL_INITIALIZE,No Info 12 | 11,TA_OUTPUT_NOT_ALL_INITIALIZE,No Info 13 | 12,TA_OUT_OF_RANGE_START_INDEX,No Info 14 | 13,TA_OUT_OF_RANGE_END_INDEX,No Info 15 | 14,TA_INVALID_LIST_TYPE,No Info 16 | 15,TA_BAD_OBJECT,No Info 17 | 16,TA_NOT_SUPPORTED,No Info 18 | 5000,TA_INTERNAL_ERROR,No Info 19 | -------------------------------------------------------------------------------- /src/build-doc.sh: -------------------------------------------------------------------------------- 1 | appledoc --project-name "Cocoa-Charts" --project-company "limc.cn" --company-id cn.limc --no-create-docset --output ../doc ./CocoaCharts/ --------------------------------------------------------------------------------