hqchart 1.1.12693 → 1.1.12706
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -47
- package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
- package/.babelrc +0 -6
- package/.vscode/settings.json +0 -4
- package/Makefile +0 -9
- package/README.md +0 -452
- package/index.js +0 -17
- package/postcss.config.js +0 -5
- package/src/index.html +0 -18
- package/src/jscommon/backup/announcement.png +0 -0
- package/src/jscommon/backup/announcement2.png +0 -0
- package/src/jscommon/backup/blocktrading.png +0 -0
- package/src/jscommon/backup/investor.png +0 -0
- package/src/jscommon/backup/pforecast.png +0 -0
- package/src/jscommon/backup/research.png +0 -0
- package/src/jscommon/backup/tradedetail.png +0 -0
- package/src/jscommon/backup/umychart - backup.js +0 -17631
- package/src/jscommon/backup/umychart.macro.js +0 -4
- package/src/jscommon/backup/umychart.macro.vue.js +0 -3
- package/src/jscommon/commonindextree.json +0 -92
- package/src/jscommon/index.html +0 -13
- package/src/jscommon/jschinamapdata.js +0 -3
- package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
- package/src/jscommon/umychart.aliYunnetwork.js +0 -47
- package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
- package/src/jscommon/umychart.complier.js +0 -25293
- package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
- package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
- package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
- package/src/jscommon/umychart.console.js +0 -12
- package/src/jscommon/umychart.deal.js +0 -1452
- package/src/jscommon/umychart.dragdiv.js +0 -48
- package/src/jscommon/umychart.index.data.js +0 -4132
- package/src/jscommon/umychart.js +0 -90542
- package/src/jscommon/umychart.keyboard.js +0 -1659
- package/src/jscommon/umychart.listctrl.js +0 -690
- package/src/jscommon/umychart.mind.js +0 -2203
- package/src/jscommon/umychart.network.js +0 -44
- package/src/jscommon/umychart.news.js +0 -823
- package/src/jscommon/umychart.node.build/buildall.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
- package/src/jscommon/umychart.regressiontest.js +0 -400
- package/src/jscommon/umychart.report.js +0 -5803
- package/src/jscommon/umychart.scrollbar.js +0 -1345
- package/src/jscommon/umychart.stock.js +0 -4218
- package/src/jscommon/umychart.style.js +0 -625
- package/src/jscommon/umychart.testdata.js +0 -150
- package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
- package/src/jscommon/umychart.user.js +0 -137
- package/src/jscommon/umychart.version.js +0 -30
- package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
- package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
- package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
- package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
- package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
- package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
- package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
- package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
- package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
- package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
- package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
- package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
- package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
- package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
- package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
- package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
- package/src/jscommon/umychart.vue.components/login.vue +0 -178
- package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
- package/src/jscommon/umychart.vue.components/readme.txt +0 -8
- package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
- package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
- package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
- package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
- package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
- package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
- package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
- package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
- package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
- package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
- package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
- package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
- package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
- package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
- package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
- package/src/jscommon/umychart.vue.components/test.vue +0 -0
- package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
- package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
- package/src/jscommon/umychart.wechat/readme.txt +0 -3
- package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
- package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
- package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
- package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2942
- package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
- package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
- package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
- package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
- package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
- package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
- package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
- package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
- package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
- package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
- package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
- package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
- package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
- package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
- package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
- package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
- package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
- package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
- package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
- package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
- package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
- package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
- package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
- package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
- package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
- package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
- package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
- package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
- package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12055
- package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
- package/src/jscommon/umychart.worker.js +0 -114
- package/src/jscommon/umychart.ws.stock.js +0 -110
- package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
- package/src/jscommon/umychart_python/__init__.py +0 -4
- package/src/jscommon/umychart_python/build.cmd +0 -2
- package/src/jscommon/umychart_python/setup.py +0 -25
- package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
- package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
- package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
- package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
- package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
- package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
- package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
- package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
- package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
- package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
- package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
- package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
- package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
- package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
- package/src/jscommon/vendor.js +0 -2
- package/src/pages/block.list.demo.page/App.vue +0 -117
- package/src/pages/block.list.demo.page/index.js +0 -12
- package/src/pages/brushTool.demo.page/App.vue +0 -19
- package/src/pages/brushTool.demo.page/index.js +0 -12
- package/src/pages/container.demo.page/App.vue +0 -118
- package/src/pages/container.demo.page/index.js +0 -18
- package/src/pages/dataZoom.demo.page/App.vue +0 -265
- package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
- package/src/pages/dataZoom.demo.page/index.js +0 -12
- package/src/pages/historydayline.demo.page/App.vue +0 -57
- package/src/pages/historydayline.demo.page/index.js +0 -12
- package/src/pages/hq.demo.page/App.vue +0 -163
- package/src/pages/hq.demo.page/index.js +0 -12
- package/src/pages/hqchart.black/App.vue +0 -90
- package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
- package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
- package/src/pages/hqchart.black/components/stockfull.vue +0 -313
- package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
- package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
- package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
- package/src/pages/hqchart.black/index.js +0 -30
- package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
- package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
- package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
- package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
- package/src/pages/hqchart.page/App.vue +0 -101
- package/src/pages/hqchart.page/index.js +0 -18
- package/src/pages/index/App.vue +0 -1408
- package/src/pages/index/index.js +0 -7
- package/src/pages/indexHq/App.vue +0 -110
- package/src/pages/indexHq/index.js +0 -18
- package/src/pages/login.demo.page/App.vue +0 -22
- package/src/pages/login.demo.page/index.js +0 -12
- package/src/pages/queryContent.demo.page/App.vue +0 -29
- package/src/pages/queryContent.demo.page/index.js +0 -18
- package/src/pages/ranking.black/App.vue +0 -199
- package/src/pages/ranking.black/index.js +0 -18
- package/src/pages/search.demo.page/App.vue +0 -28
- package/src/pages/search.demo.page/index.js +0 -12
- package/src/pages/simulatetrade.demo.page/app.vue +0 -121
- package/src/pages/simulatetrade.demo.page/index.js +0 -17
- package/src/pages/stockdeal.demo.page/App.vue +0 -63
- package/src/pages/stockdeal.demo.page/index.js +0 -19
- package/src/pages/stockdealcount.demo.page/App.vue +0 -37
- package/src/pages/stockdealcount.demo.page/index.js +0 -12
- package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
- package/src/pages/stockdeallastest.demo.page/index.js +0 -18
- package/src/pages/stockinfo.demo.page/App.vue +0 -92
- package/src/pages/stockinfo.demo.page/index.html +0 -13
- package/src/pages/stockinfo.demo.page/index.js +0 -19
- package/src/pages/stockkline.demo.page/App.vue +0 -55
- package/src/pages/stockkline.demo.page/index.js +0 -18
- package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
- package/src/pages/stockmultiorder.demo.page/index.js +0 -18
- package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
- package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
- package/src/pages/stockorder.demo.page/App.vue +0 -69
- package/src/pages/stockorder.demo.page/index.js +0 -18
- package/src/pages/test/App.vue +0 -22
- package/src/pages/test/index.js +0 -7
- package/src/pages/tradeinfopage/app.vue +0 -40
- package/src/pages/tradeinfopage/index.js +0 -7
- package/src/pages/tradeinfopage/tradeinfo.html +0 -12
- package/src/utils/urlObj.js +0 -81
- package/src/vendor.js +0 -2
- package/webpack.config.js +0 -104
package/package.json
CHANGED
|
@@ -1,58 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hqchart",
|
|
3
|
+
"version": "1.1.12706",
|
|
3
4
|
"description": "stock chart",
|
|
4
|
-
"author": "jones2000",
|
|
5
|
-
"version": "1.1.12693",
|
|
6
5
|
"main": "lib/main.js",
|
|
7
|
-
"private": false,
|
|
8
|
-
"license": "Apache License 2.0",
|
|
9
6
|
"scripts": {
|
|
10
|
-
"
|
|
11
|
-
"page": "webpack-dev-server --inline --hot --open --env.dev --open-page ",
|
|
12
|
-
"build": "rimraf dist && webpack -p --progress --hide-modules",
|
|
13
|
-
"lib": "babel src/jscommon/umychart.vue --out-dir lib",
|
|
14
|
-
"lib2": "babel src/jscommon/umychart*.js --out-dir lib2",
|
|
15
|
-
"unilib": "babel src/jscommon/umychart.uniapp.h5/umychart*.js --out-dir uniapp_lib"
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
16
8
|
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"element-ui": "^1.4.13",
|
|
21
|
-
"promise-polyfill": "^6.0.2",
|
|
22
|
-
"qs": "^6.5.0",
|
|
23
|
-
"vue": "^2.6.9",
|
|
24
|
-
"vue-plugin-timers": "^0.1.6",
|
|
25
|
-
"webpack": "^3.0",
|
|
26
|
-
"vue-router": "^2.8.1"
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/jones2000/HQChart.git"
|
|
27
12
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
13
|
+
"keywords": [
|
|
14
|
+
"kline",
|
|
15
|
+
"chart"
|
|
16
|
+
],
|
|
17
|
+
"author": "jones2000",
|
|
18
|
+
"license": "Apache License 2.0",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/jones2000/HQChart/issues"
|
|
30
21
|
},
|
|
22
|
+
"homepage": "https://github.com/jones2000/HQChart#readme",
|
|
31
23
|
"devDependencies": {
|
|
32
|
-
"
|
|
33
|
-
"babel-cli": "^6.26.0",
|
|
34
|
-
"babel-core": "^6.24.1",
|
|
35
|
-
"babel-loader": "^6.4.0",
|
|
36
|
-
"babel-plugin-transform-runtime": "^6.23.0",
|
|
37
|
-
"babel-preset-es2015": "^6.24.1",
|
|
38
|
-
"babel-preset-vue-app": "^1.2.0",
|
|
39
|
-
"babel-runtime": "^6.26.0",
|
|
40
|
-
"css-loader": "^0.27.3",
|
|
41
|
-
"file-loader": "^0.10.1",
|
|
42
|
-
"html-webpack-plugin": "^2.24.1",
|
|
43
|
-
"jquery": "^3.3.1",
|
|
44
|
-
"js-md5": "^0.7.3",
|
|
45
|
-
"less": "^3.9.0",
|
|
46
|
-
"less-loader": "^4.1.0",
|
|
47
|
-
"postcss-loader": "^1.3.3",
|
|
48
|
-
"rimraf": "^2.5.4",
|
|
49
|
-
"style-loader": "^0.13.2",
|
|
50
|
-
"stylus": "^0.54.5",
|
|
51
|
-
"stylus-loader": "^3.0.2",
|
|
52
|
-
"url-loader": "^0.5.8",
|
|
53
|
-
"vue-loader": "^11.1.4",
|
|
54
|
-
"vue-template-compiler": "^2.6.9",
|
|
55
|
-
"webpack": "^3.12.0",
|
|
56
|
-
"webpack-dev-server": "^2.4.2"
|
|
24
|
+
"jquery": "^3.7.1"
|
|
57
25
|
}
|
|
58
26
|
}
|
|
@@ -85,7 +85,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
|
85
85
|
|
|
86
86
|
"ISUP":DATA_NAME,"ISEQUAL":DATA_NAME,"ISDOWN":DATA_NAME,
|
|
87
87
|
|
|
88
|
-
"XMOVE":FUNCTION_NAME,"YMOVE":FUNCTION_NAME,"UPCOLOR":FUNCTION_NAME,"DOWNCOLOR":FUNCTION_NAME,
|
|
88
|
+
"XMOVE":FUNCTION_NAME,"YMOVE":FUNCTION_NAME,"UPCOLOR":FUNCTION_NAME,"DOWNCOLOR":FUNCTION_NAME,"FIRSTDRAW":FUNCTION_NAME,
|
|
89
89
|
"STRFORMAT":FUNCTION_NAME,
|
|
90
90
|
|
|
91
91
|
//动态行情函数
|
package/.babelrc
DELETED
package/.vscode/settings.json
DELETED
package/Makefile
DELETED
package/README.md
DELETED
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
# 介绍
|
|
2
|
-
|
|
3
|
-
> HQChart
|
|
4
|
-
|
|
5
|
-
功能:
|
|
6
|
-
1. K线图
|
|
7
|
-
- 支持前复权,后复权
|
|
8
|
-
- 支持日线,月线,周线,年线.分钟线
|
|
9
|
-
- 主图支持股票叠加
|
|
10
|
-
- K线形状支持 空心K线,实心K线,美国线,收盘价线
|
|
11
|
-
- 支持常用指标指标(目前以录入系统指标80多个),支持自定义通达信语法脚本指标( 均线,BOLL,MACD,KDJ,VOL,RSI,BRAR,WR,BIAS,OBV,DMI,CR,PSY,CCI, DMA,TRIX,VR,EMV,ROC,MIM,FSL,CYR,MASS,WAD,CHO ..... )
|
|
12
|
-
- 支持画图工具(小程序不支持)
|
|
13
|
-
- 线段,射线,矩形,圆弧线,水平线,趋势线,平行线,平行通道,价格通道线,文本,江恩角度线,阻速线,黄金分割,百分比线,波段线,三角形,对称角度,斐波那契周期线,平行四边形,圆, iconfont图片
|
|
14
|
-
- 支持区间统计, 区间形态匹配 (微信小程序版本不支持)
|
|
15
|
-
- 数据鼠标左右拖拽移动, 键盘移动十字光标移动,键盘缩放
|
|
16
|
-
- 支持通达信语法指标
|
|
17
|
-
- 支持五彩K线(目前录入系统五彩K线30多个), 支持自定义通达信语法脚本的五彩K线
|
|
18
|
-
- 支持专家系统指标
|
|
19
|
-
- 支持个股筹码图
|
|
20
|
-
2. 走势图
|
|
21
|
-
- 支持指标
|
|
22
|
-
- 支持股票叠加
|
|
23
|
-
- 支持沪深和港股,国内期货(开发中)
|
|
24
|
-
- 分钟数据显示
|
|
25
|
-
- 支持多日分钟数据显示
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- [代码地址 github.com/jones2000/HQChart](https://github.com/jones2000/HQChart)
|
|
29
|
-
- [行情页面](https://opensource.zealink.com/vuehqweb/hq.demo.page.html)
|
|
30
|
-
- [历史数据查询](https://opensource.zealink.com/vuehqweb/queryContent.demo.page.html)
|
|
31
|
-
|
|
32
|
-
## Environment
|
|
33
|
-
|
|
34
|
-
`Node >= 6`
|
|
35
|
-
|
|
36
|
-
## Start
|
|
37
|
-
|
|
38
|
-
- Clone or download this repository
|
|
39
|
-
- Enter your local directory, and install dependencies:
|
|
40
|
-
|
|
41
|
-
``` bash
|
|
42
|
-
npm install
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
# VUE用例
|
|
46
|
-
## VUE创建走势图用例
|
|
47
|
-
```js
|
|
48
|
-
<template>
|
|
49
|
-
|
|
50
|
-
<div id="app2">
|
|
51
|
-
<div id="minute" ref="minute" ></div>
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<script>
|
|
57
|
-
|
|
58
|
-
import HQChart from 'hqchart'
|
|
59
|
-
import 'hqchart/src/jscommon/umychart.resource/css/tools.css'
|
|
60
|
-
import 'hqchart/src/jscommon/umychart.resource/font/iconfont.css'
|
|
61
|
-
|
|
62
|
-
function DefaultData(){}
|
|
63
|
-
|
|
64
|
-
DefaultData.GetMinuteOption=function()
|
|
65
|
-
{
|
|
66
|
-
var option=
|
|
67
|
-
{
|
|
68
|
-
Type:'分钟走势图', //创建图形类型
|
|
69
|
-
|
|
70
|
-
Windows: //窗口指标
|
|
71
|
-
[
|
|
72
|
-
|
|
73
|
-
],
|
|
74
|
-
|
|
75
|
-
IsAutoUpdate:true, //是自动更新数据
|
|
76
|
-
DayCount:1, //1 最新交易日数据 >1 多日走势图
|
|
77
|
-
IsShowCorssCursorInfo:true, //是否显示十字光标的刻度信息
|
|
78
|
-
IsShowRightMenu:true, //是否显示右键菜单
|
|
79
|
-
CorssCursorTouchEnd:true,
|
|
80
|
-
|
|
81
|
-
MinuteLine:
|
|
82
|
-
{
|
|
83
|
-
//IsDrawAreaPrice:false, //是否画价格面积图
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
Border: //边框
|
|
87
|
-
{
|
|
88
|
-
Left:1, //左边间距
|
|
89
|
-
Right:1, //右边间距
|
|
90
|
-
Top:20,
|
|
91
|
-
Bottom:20
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
Frame: //子框架设置
|
|
95
|
-
[
|
|
96
|
-
{SplitCount:3,StringFormat:0},
|
|
97
|
-
{SplitCount:2,StringFormat:0},
|
|
98
|
-
{SplitCount:3,StringFormat:0},
|
|
99
|
-
],
|
|
100
|
-
|
|
101
|
-
ExtendChart: //扩展图形
|
|
102
|
-
[
|
|
103
|
-
//{Name:'MinuteTooltip' } //手机端tooltip
|
|
104
|
-
],
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
return option;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
export default
|
|
112
|
-
{
|
|
113
|
-
data()
|
|
114
|
-
{
|
|
115
|
-
var data=
|
|
116
|
-
{
|
|
117
|
-
Symbol:'600000.sh',
|
|
118
|
-
|
|
119
|
-
Minute:
|
|
120
|
-
{
|
|
121
|
-
JSChart:null,
|
|
122
|
-
Option:DefaultData.GetMinuteOption(),
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
return data;
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
created()
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
mounted()
|
|
136
|
-
{
|
|
137
|
-
this.OnSize();
|
|
138
|
-
|
|
139
|
-
window.onresize = ()=> { this.OnSize(); }
|
|
140
|
-
|
|
141
|
-
this.CreateMinuteChart();
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
methods:
|
|
145
|
-
{
|
|
146
|
-
OnSize()
|
|
147
|
-
{
|
|
148
|
-
var chartHeight = window.innerHeight-30;
|
|
149
|
-
var chartWidth = window.innerWidth-30;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
var minute=this.$refs.minute;
|
|
153
|
-
minute.style.width=chartWidth+'px';
|
|
154
|
-
minute.style.height=chartHeight+'px';
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
CreateMinuteChart() //创建日线图
|
|
158
|
-
{
|
|
159
|
-
if (this.Minute.JSChart) return;
|
|
160
|
-
this.Minute.Option.Symbol=this.Symbol;
|
|
161
|
-
let chart=HQChart.Chart.JSChart.Init(this.$refs.minute);
|
|
162
|
-
chart.SetOption(this.Minute.Option);
|
|
163
|
-
this.Minute.JSChart=chart;
|
|
164
|
-
},
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
## VUE创建K线图用例
|
|
171
|
-
|
|
172
|
-
```js
|
|
173
|
-
<template>
|
|
174
|
-
|
|
175
|
-
<div id="app2">
|
|
176
|
-
<div id="kline" ref='kline'></div>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
</template>
|
|
180
|
-
|
|
181
|
-
<script>
|
|
182
|
-
|
|
183
|
-
import HQChart from 'hqchart'
|
|
184
|
-
import 'hqchart/src/jscommon/umychart.resource/css/tools.css'
|
|
185
|
-
import 'hqchart/src/jscommon/umychart.resource/font/iconfont.css'
|
|
186
|
-
|
|
187
|
-
function DefaultData(){}
|
|
188
|
-
|
|
189
|
-
DefaultData.GetKLineOption = function ()
|
|
190
|
-
{
|
|
191
|
-
let data =
|
|
192
|
-
{
|
|
193
|
-
Type: '历史K线图',
|
|
194
|
-
|
|
195
|
-
Windows: //窗口指标
|
|
196
|
-
[
|
|
197
|
-
{Index:"MA",Modify: false, Change: false},
|
|
198
|
-
{Index:"VOL",Modify: false, Change: false}
|
|
199
|
-
],
|
|
200
|
-
|
|
201
|
-
IsShowCorssCursorInfo:true,
|
|
202
|
-
|
|
203
|
-
Border: //边框
|
|
204
|
-
{
|
|
205
|
-
Left: 1,
|
|
206
|
-
Right: 1, //右边间距
|
|
207
|
-
Top: 25,
|
|
208
|
-
Bottom: 25,
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
KLine:
|
|
212
|
-
{
|
|
213
|
-
Right:1, //复权 0 不复权 1 前复权 2 后复权
|
|
214
|
-
Period:0, //周期: 0 日线 1 周线 2 月线 3 年线
|
|
215
|
-
PageSize:70,
|
|
216
|
-
IsShowTooltip:true
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
return data;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export default
|
|
225
|
-
{
|
|
226
|
-
data()
|
|
227
|
-
{
|
|
228
|
-
var data=
|
|
229
|
-
{
|
|
230
|
-
Symbol:'600000.sh',
|
|
231
|
-
KLine:
|
|
232
|
-
{
|
|
233
|
-
JSChart:null,
|
|
234
|
-
Option:DefaultData.GetKLineOption(),
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
return data;
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
created()
|
|
244
|
-
{
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
mounted()
|
|
249
|
-
{
|
|
250
|
-
this.OnSize();
|
|
251
|
-
|
|
252
|
-
window.onresize = ()=> { this.OnSize(); }
|
|
253
|
-
|
|
254
|
-
this.CreateKLineChart();
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
methods:
|
|
258
|
-
{
|
|
259
|
-
OnSize()
|
|
260
|
-
{
|
|
261
|
-
var chartHeight = window.innerHeight-30;
|
|
262
|
-
var chartWidth = window.innerWidth-30;
|
|
263
|
-
|
|
264
|
-
var kline=this.$refs.kline;
|
|
265
|
-
kline.style.width=chartWidth+'px';
|
|
266
|
-
kline.style.height=chartHeight+'px';
|
|
267
|
-
if (this.KLine.JSChart) this.KLine.JSChart.OnSize();
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
CreateKLineChart() //创建K线图
|
|
271
|
-
{
|
|
272
|
-
if (this.KLine.JSChart) return;
|
|
273
|
-
this.KLine.Option.Symbol=this.Symbol;
|
|
274
|
-
let chart=HQChart.Chart.JSChart.Init(this.$refs.kline);
|
|
275
|
-
chart.SetOption(this.KLine.Option);
|
|
276
|
-
this.KLine.JSChart=chart;
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
# React用例
|
|
285
|
-
## React创建k线图用例
|
|
286
|
-
```js
|
|
287
|
-
import React from 'react';
|
|
288
|
-
import HQChart from 'hqchart';
|
|
289
|
-
|
|
290
|
-
class kline extends React.Component {
|
|
291
|
-
constructor(props) { //构造函数
|
|
292
|
-
super(props);
|
|
293
|
-
this.initCanvas = this.initCanvas.bind(this);
|
|
294
|
-
this.state = {
|
|
295
|
-
Symbol:'600000.sh',
|
|
296
|
-
KLine:
|
|
297
|
-
{
|
|
298
|
-
JSChart:null,
|
|
299
|
-
Option:{
|
|
300
|
-
Symbol:'',
|
|
301
|
-
Type: '历史K线图',
|
|
302
|
-
|
|
303
|
-
Windows: //窗口指标
|
|
304
|
-
[
|
|
305
|
-
{Index:"MA",Modify: false, Change: false},
|
|
306
|
-
{Index:"VOL",Modify: false, Change: false}
|
|
307
|
-
],
|
|
308
|
-
|
|
309
|
-
IsShowCorssCursorInfo:true,
|
|
310
|
-
|
|
311
|
-
Border: //边框
|
|
312
|
-
{
|
|
313
|
-
Left: 1,
|
|
314
|
-
Right: 1, //右边间距
|
|
315
|
-
Top: 25,
|
|
316
|
-
Bottom: 25,
|
|
317
|
-
},
|
|
318
|
-
|
|
319
|
-
KLine:
|
|
320
|
-
{
|
|
321
|
-
Right:1, //复权 0 不复权 1 前复权 2 后复权
|
|
322
|
-
Period:0, //周期: 0 日线 1 周线 2 月线 3 年线
|
|
323
|
-
PageSize:70,
|
|
324
|
-
IsShowTooltip:true
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
initCanvas() {
|
|
332
|
-
|
|
333
|
-
if (this.state.KLine.JSChart) return;
|
|
334
|
-
|
|
335
|
-
this.state.KLine.Option.Symbol=this.state.Symbol;
|
|
336
|
-
let chart=HQChart.Chart.JSChart.Init(document.getElementById("time_graph_canvas"));
|
|
337
|
-
chart.SetOption(this.state.KLine.Option);
|
|
338
|
-
this.state.KLine.JSChart=chart;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
componentDidMount() {
|
|
342
|
-
this.initCanvas()
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
componentDidUpdate() {
|
|
346
|
-
this.initCanvas()
|
|
347
|
-
}
|
|
348
|
-
render() {
|
|
349
|
-
var chartHeight = window.innerHeight-30;
|
|
350
|
-
var chartWidth = window.innerWidth-30;
|
|
351
|
-
var styleText = {
|
|
352
|
-
width: chartWidth+'px',
|
|
353
|
-
height: chartHeight+'px',
|
|
354
|
-
};
|
|
355
|
-
return (
|
|
356
|
-
<div style={styleText} id="time_graph_canvas">
|
|
357
|
-
</div>
|
|
358
|
-
)
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export default kline;
|
|
363
|
-
```
|
|
364
|
-
## React创建走势图用例
|
|
365
|
-
```js
|
|
366
|
-
import React from 'react';
|
|
367
|
-
import HQChart from 'hqchart';
|
|
368
|
-
|
|
369
|
-
class minute extends React.Component {
|
|
370
|
-
constructor(props) { //构造函数
|
|
371
|
-
super(props);
|
|
372
|
-
this.initCanvas = this.initCanvas.bind(this);
|
|
373
|
-
this.state = {
|
|
374
|
-
Symbol:'600000.sh',
|
|
375
|
-
Minute:
|
|
376
|
-
{
|
|
377
|
-
JSChart:null,
|
|
378
|
-
Option:{
|
|
379
|
-
Type:'分钟走势图', //创建图形类型
|
|
380
|
-
Symbol:'',
|
|
381
|
-
Windows: //窗口指标
|
|
382
|
-
[
|
|
383
|
-
|
|
384
|
-
],
|
|
385
|
-
|
|
386
|
-
IsAutoUpdate:true, //是自动更新数据
|
|
387
|
-
DayCount:1, //1 最新交易日数据 >1 多日走势图
|
|
388
|
-
IsShowCorssCursorInfo:true, //是否显示十字光标的刻度信息
|
|
389
|
-
IsShowRightMenu:true, //是否显示右键菜单
|
|
390
|
-
CorssCursorTouchEnd:true,
|
|
391
|
-
|
|
392
|
-
MinuteLine:
|
|
393
|
-
{
|
|
394
|
-
//IsDrawAreaPrice:false, //是否画价格面积图
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
Border: //边框
|
|
398
|
-
{
|
|
399
|
-
Left:1, //左边间距
|
|
400
|
-
Right:1, //右边间距
|
|
401
|
-
Top:20,
|
|
402
|
-
Bottom:20
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
Frame: //子框架设置
|
|
406
|
-
[
|
|
407
|
-
{SplitCount:3,StringFormat:0},
|
|
408
|
-
{SplitCount:2,StringFormat:0},
|
|
409
|
-
{SplitCount:3,StringFormat:0},
|
|
410
|
-
],
|
|
411
|
-
|
|
412
|
-
ExtendChart: //扩展图形
|
|
413
|
-
[
|
|
414
|
-
//{Name:'MinuteTooltip' } //手机端tooltip
|
|
415
|
-
],
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
initCanvas() {
|
|
421
|
-
|
|
422
|
-
if (this.state.Minute.JSChart) return;
|
|
423
|
-
|
|
424
|
-
this.state.Minute.Option.Symbol=this.state.Symbol;
|
|
425
|
-
let chart=HQChart.Chart.JSChart.Init(document.getElementById("time_graph_canvas"));
|
|
426
|
-
chart.SetOption(this.state.Minute.Option);
|
|
427
|
-
this.state.Minute.JSChart=chart;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
componentDidMount() {
|
|
431
|
-
this.initCanvas()
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
componentDidUpdate() {
|
|
435
|
-
this.initCanvas()
|
|
436
|
-
}
|
|
437
|
-
render() {
|
|
438
|
-
var chartHeight = window.innerHeight-30;
|
|
439
|
-
var chartWidth = window.innerWidth-30;
|
|
440
|
-
var styleText = {
|
|
441
|
-
width: chartWidth+'px',
|
|
442
|
-
height: chartHeight+'px',
|
|
443
|
-
};
|
|
444
|
-
return (
|
|
445
|
-
<div style={styleText} id="time_graph_canvas">
|
|
446
|
-
</div>
|
|
447
|
-
)
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export default minute;
|
|
452
|
-
```
|
package/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2018 jones
|
|
3
|
-
|
|
4
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
-
|
|
6
|
-
开源项目 https://github.com/jones2000/HQChart
|
|
7
|
-
|
|
8
|
-
jones_2000@163.com
|
|
9
|
-
|
|
10
|
-
npm HQChart 接口
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
//行情图形库
|
|
14
|
-
module.exports.Chart = require('./src/jscommon/umychart.vue/umychart.vue.js').default;
|
|
15
|
-
|
|
16
|
-
//行情股票数据接口类
|
|
17
|
-
module.exports.Stock = require('./src/jscommon/umychart.vue/umychart.stock.vue.js').default;
|
package/postcss.config.js
DELETED
package/src/index.html
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|