hqchart 1.1.12733 → 1.1.12734
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 +1 -1
- package/src/jscommon/jschinamapdata.js +3 -0
- package/src/jscommon/umychart.NetworkFilterTest.js +48803 -0
- package/src/jscommon/umychart.aliYunnetwork.js +47 -0
- package/src/jscommon/umychart.complier.js +25402 -0
- package/src/jscommon/umychart.console.js +12 -0
- package/src/jscommon/umychart.deal.js +1452 -0
- package/src/jscommon/umychart.dragdiv.js +48 -0
- package/src/jscommon/umychart.index.data.js +4132 -0
- package/src/jscommon/umychart.js +90740 -0
- package/src/jscommon/umychart.keyboard.js +1659 -0
- package/src/jscommon/umychart.listctrl.js +690 -0
- package/src/jscommon/umychart.mind.js +2203 -0
- package/src/jscommon/umychart.network.js +44 -0
- package/src/jscommon/umychart.news.js +823 -0
- package/src/jscommon/umychart.regressiontest.js +400 -0
- package/src/jscommon/umychart.report.js +5803 -0
- package/src/jscommon/umychart.scrollbar.js +1345 -0
- package/src/jscommon/umychart.stock.js +4218 -0
- package/src/jscommon/umychart.style.js +625 -0
- package/src/jscommon/umychart.testdata.js +150 -0
- package/src/jscommon/umychart.user.js +137 -0
- package/src/jscommon/umychart.version.js +30 -0
- package/src/jscommon/umychart.worker.js +114 -0
- package/src/jscommon/umychart.ws.stock.js +110 -0
- package/src/jscommon/vendor.js +2 -0
|
@@ -0,0 +1,625 @@
|
|
|
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
|
+
配色
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
不同风格行情配置文件
|
|
15
|
+
!!手机上字体大小需要*分辨率比
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* umychart.js 里面已经有了
|
|
19
|
+
function GetDevicePixelRatio()
|
|
20
|
+
{
|
|
21
|
+
return window.devicePixelRatio || 1;
|
|
22
|
+
}
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
//黑色风格
|
|
26
|
+
|
|
27
|
+
function GetBlackStyle()
|
|
28
|
+
{
|
|
29
|
+
var BLACK_STYLE=
|
|
30
|
+
{
|
|
31
|
+
BGColor:'rgb(0,0,0)', //背景色
|
|
32
|
+
TooltipBGColor: "rgb(255, 255, 255)", //背景色
|
|
33
|
+
TooltipAlpha: 0.92, //透明度
|
|
34
|
+
|
|
35
|
+
SelectRectBGColor: "rgba(1,130,212,0.06)", //背景色
|
|
36
|
+
// SelectRectAlpha: 0.06; //透明度
|
|
37
|
+
|
|
38
|
+
//K线颜色
|
|
39
|
+
UpBarColor: "rgb(238,21,21)", //上涨
|
|
40
|
+
DownBarColor: "rgb(25,158,0)", //下跌
|
|
41
|
+
UnchagneBarColor: "rgb(228,228,228)", //平盘
|
|
42
|
+
EmptyBarBGColor:'rgb(0,0,0)', //空心柱子背景色
|
|
43
|
+
|
|
44
|
+
HLCArea:
|
|
45
|
+
{
|
|
46
|
+
HighLineColor:'rgb(238,21,21)',
|
|
47
|
+
LowLineColor:"rgb(25,158,0)",
|
|
48
|
+
CloseLineColor:"rgb(156,156,156)",
|
|
49
|
+
LineWidth:2*GetDevicePixelRatio(),
|
|
50
|
+
|
|
51
|
+
UpAreaColor:"rgba(238,21,21, 0.3)",
|
|
52
|
+
DownAreaColor:"rgba(25,158,0, 0.3)",
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
Minute:
|
|
56
|
+
{
|
|
57
|
+
VolBarColor: null,
|
|
58
|
+
PriceColor: "rgb(25,180,231)",
|
|
59
|
+
AreaPriceColor:"rgba(63,158,255,.3)",
|
|
60
|
+
AvPriceColor: "rgb(255,236,0)",
|
|
61
|
+
PositionColor:'rgb(218,165,32)',
|
|
62
|
+
VolTitleColor:"rgb(190,190,190)",
|
|
63
|
+
Before:
|
|
64
|
+
{
|
|
65
|
+
BGColor:"rgba(105,105,105,0.5)",
|
|
66
|
+
AvPriceColor:'rgb(248,248,255)', //均线
|
|
67
|
+
|
|
68
|
+
CloseIcon:
|
|
69
|
+
{
|
|
70
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
71
|
+
Color:"rgb(156,156,156)"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
After:
|
|
75
|
+
{
|
|
76
|
+
BGColor:"rgba(105,105,105,0.5)",
|
|
77
|
+
AvPriceColor:'rgb(248,248,255)' //均线
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
DefaultTextColor: "rgb(101,104,112)",
|
|
83
|
+
DefaultTextFont: 14*GetDevicePixelRatio() +'px 微软雅黑',
|
|
84
|
+
TitleFont: 13*GetDevicePixelRatio() +'px 微软雅黑', //标题字体(动态标题 K线及指标的动态信息字体)
|
|
85
|
+
IndexTitleColor:"rgb(190, 190 ,190)", //指标名字颜色
|
|
86
|
+
IndexTitleBGColor:'rgb(0,0,0)', //指标名字背景色
|
|
87
|
+
IndexTitleBorderColor:'rgb(211, 211, 211)', //指标名字边框颜色
|
|
88
|
+
IndexTitleBorderMoveOnColor:'rgb(30,144,255)', //指标名字边框颜色(鼠标在上面)
|
|
89
|
+
|
|
90
|
+
UpTextColor: "rgb(238,21,21)",
|
|
91
|
+
DownTextColor: "rgb(25,158,0)",
|
|
92
|
+
UnchagneTextColor: "rgb(190, 190 ,190)",
|
|
93
|
+
CloseLineColor: 'rgb(250,250,250)',
|
|
94
|
+
|
|
95
|
+
Title:
|
|
96
|
+
{
|
|
97
|
+
TradeIndexColor:'rgb(105,105,105)', //交易指标颜色
|
|
98
|
+
ColorIndexColor:'rgb(112,128,144)', //五彩K线颜色
|
|
99
|
+
|
|
100
|
+
VolColor:"rgb(190, 190 ,190)", //标题成交量
|
|
101
|
+
AmountColor:"rgb(190, 190 ,190)", //成交金额
|
|
102
|
+
DateTimeColor:"rgb(190, 190 ,190)", //时间,日期
|
|
103
|
+
SettingColor:"rgb(190, 190 ,190)", //周期,复权
|
|
104
|
+
NameColor:"rgb(190, 190 ,190)" , //股票名称
|
|
105
|
+
TurnoverRateColor:'rgb(101,104,112)', //换手率
|
|
106
|
+
PositionColor:"rgb(101,104,112)" //持仓
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
FrameBorderPen: "rgb(47,51,62)", //边框
|
|
110
|
+
MultiDayBorderPen:"rgba(236,236,236,0.5)",
|
|
111
|
+
FrameSplitPen: "rgba(236,236,236,0.13)", //分割线
|
|
112
|
+
FrameSplitTextColor: "rgb(220,220,220)", //刻度文字颜色
|
|
113
|
+
FrameSplitTextFont: 12*GetDevicePixelRatio() +"px 微软雅黑", //坐标刻度文字字体
|
|
114
|
+
FrameTitleBGColor: "rgb(0,0,0)", //标题栏背景色
|
|
115
|
+
OverlayIndexTitleBGColor:'rgba(0,0,0,0.7)', //叠加指标背景色
|
|
116
|
+
|
|
117
|
+
Frame:
|
|
118
|
+
{
|
|
119
|
+
XBottomOffset:1*GetDevicePixelRatio(), //X轴文字向下偏移
|
|
120
|
+
|
|
121
|
+
PercentageText: //百分比坐标文字颜色
|
|
122
|
+
{
|
|
123
|
+
PriceColor:'rgb(101,104,112)',
|
|
124
|
+
PercentageColor:"rgb(101,104,112)",
|
|
125
|
+
SplitColor:"rgb(101,104,112)",
|
|
126
|
+
Font:14*GetDevicePixelRatio() +"px 微软雅黑"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
//叠加指标框架
|
|
131
|
+
OverlayFrame:
|
|
132
|
+
{
|
|
133
|
+
BolderPen:'rgb(130,130,130)', //指标边框线
|
|
134
|
+
TitleColor:'rgb(181,181,181)', //指标名字颜色
|
|
135
|
+
TitleFont:11*GetDevicePixelRatio() +'px arial', //指标名字字体
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
FrameLatestPrice : {
|
|
139
|
+
TextColor:'rgb(255,255,255)', //最新价格文字颜色
|
|
140
|
+
UpBarColor:"rgb(238,21,21)", //上涨
|
|
141
|
+
DownBarColor:"rgb(25,158,0)", //下跌
|
|
142
|
+
UnchagneBarColor:"rgb(190,190,190)", //平盘
|
|
143
|
+
BGAlpha:0.6,
|
|
144
|
+
EmptyBGColor:"rgb(0,0,0)"
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
CorssCursorBGColor: "rgb(43,54,69)", //十字光标背景
|
|
148
|
+
CorssCursorTextColor: "rgb(255,255,255)",
|
|
149
|
+
CorssCursorTextFont: 12*GetDevicePixelRatio() +"px 微软雅黑",
|
|
150
|
+
CorssCursorHPenColor: "rgb(130,130,130)", //十字光标线段颜色
|
|
151
|
+
CorssCursorVPenColor: "rgb(130,130,130)", //十字光标线段颜色
|
|
152
|
+
|
|
153
|
+
CorssCursor:
|
|
154
|
+
{
|
|
155
|
+
RightButton :
|
|
156
|
+
{
|
|
157
|
+
BGColor:'rgb(43,54,69)',
|
|
158
|
+
PenColor:'rgb(255,255,255)',
|
|
159
|
+
Icon: { Text:'\ue6a3', Color:'rgb(255,255,255)', Family:"iconfont", Size:18 }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
//订单流配置
|
|
164
|
+
OrderFlow:
|
|
165
|
+
{
|
|
166
|
+
UpColor:{BG:'rgb(223,191,180)', Border:"rgb(196,84,86)" }, //阳线
|
|
167
|
+
DownColor:{ BG:"rgb(176,212,184)", Border:'rgb(66,94,74)' }, //阴线
|
|
168
|
+
UnchagneColor: {BG:"rgb(216,221,177)", Border:"rgb(209,172,129)"}, //平盘
|
|
169
|
+
Text:{ Color: "rgb(248,248,255)" , Family:'Arial', FontMaxSize:16, MaxValue:"8888" }, //文字
|
|
170
|
+
Line:{ UpDownColor: "rgb(220,220,220)", MiddleColor:"rgb(211,211,211)" } //最大, 最低,中间 竖线
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
KLine:
|
|
174
|
+
{
|
|
175
|
+
MaxMin: { Font: 12*GetDevicePixelRatio() +'px 微软雅黑', Color: 'rgb(255,250,240)', RightArrow:"→", LeftArrow:"←", HighYOffset:0, LowYOffset:0 }, //K线最大最小值显示
|
|
176
|
+
Info: //信息地雷
|
|
177
|
+
{
|
|
178
|
+
Investor:
|
|
179
|
+
{
|
|
180
|
+
ApiUrl:'/API/NewsInteract', //互动易
|
|
181
|
+
IconFont: { Family:'iconfont', Text:'\ue631' , HScreenText:'\ue684', Color:'#1c65db'} //SVG 文本
|
|
182
|
+
},
|
|
183
|
+
Announcement: //公告
|
|
184
|
+
{
|
|
185
|
+
ApiUrl:'/API/ReportList',
|
|
186
|
+
IconFont: { Family:'iconfont', Text:'\ue633', HScreenText:'\ue685', Color:'#f5a521' }, //SVG 文本
|
|
187
|
+
IconFont2: { Family:'iconfont', Text:'\ue634', HScreenText:'\ue686', Color:'#ed7520' } //SVG 文本 //季报
|
|
188
|
+
},
|
|
189
|
+
Pforecast: //业绩预告
|
|
190
|
+
{
|
|
191
|
+
ApiUrl:'/API/StockHistoryDay',
|
|
192
|
+
IconFont: { Family:'iconfont', Text:'\ue62e', HScreenText:'\ue687', Color:'#986cad' } //SVG 文本
|
|
193
|
+
},
|
|
194
|
+
Research: //调研
|
|
195
|
+
{
|
|
196
|
+
ApiUrl:'/API/InvestorRelationsList',
|
|
197
|
+
IconFont: { Family:'iconfont', Text:'\ue632', HScreenText:'\ue688', Color:'#19b1b7' } //SVG 文本
|
|
198
|
+
},
|
|
199
|
+
BlockTrading: //大宗交易
|
|
200
|
+
{
|
|
201
|
+
ApiUrl:'/API/StockHistoryDay',
|
|
202
|
+
IconFont: { Family:'iconfont', Text:'\ue630', HScreenText:'\ue689', Color:'#f39f7c' } //SVG 文本
|
|
203
|
+
},
|
|
204
|
+
TradeDetail: //龙虎榜
|
|
205
|
+
{
|
|
206
|
+
ApiUrl:'/API/StockHistoryDay',
|
|
207
|
+
IconFont: { Family:'iconfont', Text:'\ue62f', HScreenText:'\ue68a' ,Color:'#b22626' } //SVG 文本
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
},
|
|
211
|
+
NumIcon:
|
|
212
|
+
{
|
|
213
|
+
Color:'rgb(251,80,80)',Family:'iconfont',
|
|
214
|
+
Text:[ '\ue649',
|
|
215
|
+
'\ue63b','\ue640','\ue63d','\ue63f','\ue645','\ue641','\ue647','\ue648','\ue646','\ue636',
|
|
216
|
+
'\ue635','\ue637','\ue638','\ue639','\ue63a','\ue63c','\ue63e','\ue642','\ue644','\ue643'
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
TradeIcon: //交易指标 图标
|
|
220
|
+
{
|
|
221
|
+
Family:'iconfont',
|
|
222
|
+
Buy: { Color:'rgb(255,15,4)', Text:'\ue683', HScreenText:'\ue682'},
|
|
223
|
+
Sell: { Color:'rgb(64,122,22)', Text:'\ue681',HScreenText:'\ue680'},
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
VirtualKLine:
|
|
228
|
+
{
|
|
229
|
+
Color:'rgb(119,136,153)',
|
|
230
|
+
LineDash:[2,2]
|
|
231
|
+
},
|
|
232
|
+
|
|
233
|
+
Index:
|
|
234
|
+
{
|
|
235
|
+
LineColor: //指标线段颜色
|
|
236
|
+
[
|
|
237
|
+
"rgb(255,189,09)",
|
|
238
|
+
"rgb(22,198,255)",
|
|
239
|
+
"rgb(174,35,161)",
|
|
240
|
+
"rgb(236,105,65)",
|
|
241
|
+
"rgb(68,114,196)",
|
|
242
|
+
"rgb(229,0,79)",
|
|
243
|
+
"rgb(0,128,255)",
|
|
244
|
+
"rgb(252,96,154)",
|
|
245
|
+
"rgb(42,230,215)",
|
|
246
|
+
"rgb(24,71,178)",
|
|
247
|
+
],
|
|
248
|
+
NotSupport: { Font: `${14*GetDevicePixelRatio()}px 微软雅黑`, TextColor: "rgb(250,250,250)" }
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
ColorArray: //自定义指标默认颜色
|
|
252
|
+
[
|
|
253
|
+
"rgb(255,174,0)",
|
|
254
|
+
"rgb(25,199,255)",
|
|
255
|
+
"rgb(175,95,162)",
|
|
256
|
+
"rgb(236,105,65)",
|
|
257
|
+
"rgb(68,114,196)",
|
|
258
|
+
"rgb(229,0,79)",
|
|
259
|
+
"rgb(0,128,255)",
|
|
260
|
+
"rgb(252,96,154)",
|
|
261
|
+
"rgb(42,230,215)",
|
|
262
|
+
"rgb(24,71,178)",
|
|
263
|
+
],
|
|
264
|
+
|
|
265
|
+
//按钮
|
|
266
|
+
Buttons:
|
|
267
|
+
{
|
|
268
|
+
CloseOverlayIndex:
|
|
269
|
+
{
|
|
270
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
271
|
+
Color:"rgb(156,156,156)"
|
|
272
|
+
},
|
|
273
|
+
CloseWindow:
|
|
274
|
+
{
|
|
275
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
276
|
+
Color:"rgb(156,156,156)"
|
|
277
|
+
},
|
|
278
|
+
ChangeIndex:
|
|
279
|
+
{
|
|
280
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
281
|
+
Color:"rgb(156,156,156)"
|
|
282
|
+
},
|
|
283
|
+
OverlayIndex:
|
|
284
|
+
{
|
|
285
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
286
|
+
Color:"rgb(156,156,156)"
|
|
287
|
+
},
|
|
288
|
+
ModifyIndexParam:
|
|
289
|
+
{
|
|
290
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
291
|
+
Color:"rgb(156,156,156)"
|
|
292
|
+
},
|
|
293
|
+
//最大化, 最小化
|
|
294
|
+
MaxMinWindow:
|
|
295
|
+
{
|
|
296
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
297
|
+
Color:"rgb(156,156,156)"
|
|
298
|
+
},
|
|
299
|
+
TitleWindow:
|
|
300
|
+
{
|
|
301
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
302
|
+
Color:"rgb(156,156,156)"
|
|
303
|
+
},
|
|
304
|
+
ExportData:
|
|
305
|
+
{
|
|
306
|
+
MoveOnColor:"rgb(255,255,255)",
|
|
307
|
+
Color:"rgb(156,156,156)"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
|
|
311
|
+
DrawPicture: //画图工具
|
|
312
|
+
{
|
|
313
|
+
LineColor:
|
|
314
|
+
[
|
|
315
|
+
"rgb(41,98,255)"
|
|
316
|
+
],
|
|
317
|
+
|
|
318
|
+
PointColor:
|
|
319
|
+
[
|
|
320
|
+
"rgb(41,98,255)", //选中颜色
|
|
321
|
+
"rgb(89,135,255)", //moveon颜色
|
|
322
|
+
"rgb(0,0,0)" //空心点背景色
|
|
323
|
+
],
|
|
324
|
+
|
|
325
|
+
},
|
|
326
|
+
|
|
327
|
+
TooltipPaint :
|
|
328
|
+
{
|
|
329
|
+
BGColor:'rgba(20,20,20,0.8)', //背景色
|
|
330
|
+
BorderColor:'rgb(210,210,210)', //边框颜色
|
|
331
|
+
TitleColor:'rgb(210,210,210)', //标题颜色
|
|
332
|
+
TitleFont:13*GetDevicePixelRatio() +'px 微软雅黑', //字体
|
|
333
|
+
DateTimeColor:'rgb(210,210,210)',
|
|
334
|
+
VolColor:"rgb(255, 185, 15)", //标题成交量
|
|
335
|
+
AmountColor:"rgb(210,210,210)", //成交金额
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
PCTooltipPaint:
|
|
339
|
+
{
|
|
340
|
+
BGColor:'rgba(20,20,20,0.8)', //背景色
|
|
341
|
+
BorderColor:'rgb(210,210,210)', //边框颜色
|
|
342
|
+
TitleColor:'rgb(210,210,210)', //标题颜色
|
|
343
|
+
TitleFont:12*GetDevicePixelRatio() +'px 微软雅黑', //字体
|
|
344
|
+
DateTimeColor:'rgb(210,210,210)',
|
|
345
|
+
VolColor:"rgb(161,154,3)", //标题成交量
|
|
346
|
+
AmountColor:"rgb(161,154,3)", //成交金额
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
//走势图 信息地雷
|
|
350
|
+
MinuteInfo:
|
|
351
|
+
{
|
|
352
|
+
TextColor: 'rgb(84,143,255)',
|
|
353
|
+
Font: 14*GetDevicePixelRatio() +'px 微软雅黑',
|
|
354
|
+
PointColor:'rgb(38,113,254)',
|
|
355
|
+
LineColor:'rgb(120,167,255)',
|
|
356
|
+
TextBGColor:'rgba(255,255,255,1)'
|
|
357
|
+
},
|
|
358
|
+
|
|
359
|
+
DepthMapPaint:
|
|
360
|
+
{
|
|
361
|
+
LineColor:"rgba(255,185,15)",
|
|
362
|
+
AreaColor:"rgba(255,185,15,0.8)",
|
|
363
|
+
TextColor:"rgba(255,255,255)",
|
|
364
|
+
TextBGColor:'rgb(43,54,69)'
|
|
365
|
+
},
|
|
366
|
+
|
|
367
|
+
KLineYAxisBGPaint:
|
|
368
|
+
{
|
|
369
|
+
Font:12*GetDevicePixelRatio() +'px 微软雅黑',
|
|
370
|
+
TextColor:"rgb(255,255,255)",
|
|
371
|
+
LineColor:"rgb(255,255,255)"
|
|
372
|
+
},
|
|
373
|
+
|
|
374
|
+
//筹码分布图
|
|
375
|
+
StockChip:
|
|
376
|
+
{
|
|
377
|
+
InfoColor:'rgb(255,255,255)', //文字颜色
|
|
378
|
+
DayInfoColor:'rgb(0,0,0)' //周期颜色内文字颜色
|
|
379
|
+
},
|
|
380
|
+
|
|
381
|
+
//深度图
|
|
382
|
+
DepthChart:
|
|
383
|
+
{
|
|
384
|
+
BidColor: { Line:"rgb(82,176,123)", Area:"rgba(82,176,123,0.5)"}, //卖
|
|
385
|
+
AskColor: { Line:"rgb(207,76,89)", Area:"rgba(207,76,89, 0.5)"}, //买
|
|
386
|
+
LineWidth:4
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
DepthCorss:
|
|
390
|
+
{
|
|
391
|
+
BidColor: { Line:"rgb(82,176,123)" }, //卖
|
|
392
|
+
AskColor: { Line:"rgb(207,76,89)" }, //买
|
|
393
|
+
LineWidth:2, //线段宽度
|
|
394
|
+
LineDash:[3,3],
|
|
395
|
+
Tooltip:
|
|
396
|
+
{
|
|
397
|
+
BGColor:'rgba(54,54,54, 0.8)', TextColor:"rgb(203,215,224)",
|
|
398
|
+
Border:{ Top:5, Left:20, Bottom:5, Center: 5},
|
|
399
|
+
Font:14*GetDevicePixelRatio() +"px 微软雅黑",
|
|
400
|
+
LineHeight:16 //单行高度
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
ChartDrawVolProfile:
|
|
405
|
+
{
|
|
406
|
+
BGColor:"rgba(244,250,254,0.3)",
|
|
407
|
+
BorderColor:"rgba(255,255,255)",
|
|
408
|
+
VolLineColor:"rgb(232,5,9)",
|
|
409
|
+
|
|
410
|
+
UpVolColor:"rgba(103,179,238, 0.24)",
|
|
411
|
+
DownVolColor:"rgba(237,208,105,0.24)",
|
|
412
|
+
AreaUpColor:"rgb(103,179,238,0.7)",
|
|
413
|
+
AreaDonwColor:"rgba(237,208,105,0.7)",
|
|
414
|
+
|
|
415
|
+
Text:{ Color: "rgb(0,0,0)" , Family:'Arial', FontMaxSize:18, FontMinSize:6 }, //文字
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
//区间选择
|
|
419
|
+
RectSelect:
|
|
420
|
+
{
|
|
421
|
+
LineColor:"rgb(115,83,64)", //竖线
|
|
422
|
+
LineWidth:1*GetDevicePixelRatio(),
|
|
423
|
+
LineDotted:[3,3],
|
|
424
|
+
AreaColor:"rgba(26,13,7,0.5)", //面积
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
SelectedChart:
|
|
428
|
+
{
|
|
429
|
+
LineWidth:1,
|
|
430
|
+
LineColor:'rgb(55,100,100)',
|
|
431
|
+
Radius:4,
|
|
432
|
+
MinSpace:200, //点和点间最小间距
|
|
433
|
+
BGColor:"rgb(255,255,255)"
|
|
434
|
+
},
|
|
435
|
+
|
|
436
|
+
DragMovePaint:
|
|
437
|
+
{
|
|
438
|
+
TextColor:"rgb(255,255,255)",
|
|
439
|
+
//Font:14*GetDevicePixelRatio() +"px 微软雅黑"
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
//成交明细
|
|
443
|
+
DealList:
|
|
444
|
+
{
|
|
445
|
+
BorderColor:'rgb(38,38,41)', //边框线
|
|
446
|
+
Header:
|
|
447
|
+
{
|
|
448
|
+
Color:"RGB(245,245,245)",
|
|
449
|
+
Mergin:{ Left:5, Right:5, Top:4, Bottom:2 },
|
|
450
|
+
Font:{ Size:12, Name:"微软雅黑" }
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
Row:
|
|
454
|
+
{
|
|
455
|
+
Mergin:{ Top:2, Bottom:2 },
|
|
456
|
+
Font:{ Size:15, Name:"微软雅黑"},
|
|
457
|
+
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 }
|
|
458
|
+
},
|
|
459
|
+
|
|
460
|
+
FieldColor:
|
|
461
|
+
{
|
|
462
|
+
Vol:"rgb(192,192,0)", //成交量
|
|
463
|
+
Time:"rgb(245,245,245)", //时间
|
|
464
|
+
Deal:"rgb(111,128,112)", //成交笔数
|
|
465
|
+
Index:"rgb(245,245,245)", //序号
|
|
466
|
+
BarTitle:'rgb(245,245,245)', //柱子文字
|
|
467
|
+
Text:"rgb(245,245,245)", //默认文本
|
|
468
|
+
},
|
|
469
|
+
|
|
470
|
+
UpTextColor:"rgb(238,21,21)", //上涨文字颜色
|
|
471
|
+
DownTextColor:"rgb(25,158,0)", //下跌文字颜色
|
|
472
|
+
UnchagneTextColor:"rgb(228,228,228)" //平盘文字颜色
|
|
473
|
+
},
|
|
474
|
+
|
|
475
|
+
//报价列表
|
|
476
|
+
Report:
|
|
477
|
+
{
|
|
478
|
+
BorderColor:'rgb(38,38,41)', //边框线
|
|
479
|
+
SelectedColor:"rgb(49,48,56)", //选中行
|
|
480
|
+
Header:
|
|
481
|
+
{
|
|
482
|
+
Color:"RGB(245,245,245)",
|
|
483
|
+
SortColor:"rgb(255,0,0)",
|
|
484
|
+
Mergin:{ Left:5, Right:5, Top:4, Bottom:2 },
|
|
485
|
+
Font:{ Size:12, Name:"微软雅黑" }
|
|
486
|
+
},
|
|
487
|
+
|
|
488
|
+
Item:
|
|
489
|
+
{
|
|
490
|
+
Mergin:{ Top:2, Bottom:0,Left:5, Right:5 },
|
|
491
|
+
Font:{ Size:15, Name:"微软雅黑"},
|
|
492
|
+
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },
|
|
493
|
+
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
494
|
+
SymbolFont:{ Size:12, Name:"微软雅黑" }
|
|
495
|
+
},
|
|
496
|
+
|
|
497
|
+
//固定行
|
|
498
|
+
FixedItem:
|
|
499
|
+
{
|
|
500
|
+
Font:{ Size:15, Name:"微软雅黑"},
|
|
501
|
+
},
|
|
502
|
+
|
|
503
|
+
LimitBorder:
|
|
504
|
+
{
|
|
505
|
+
Color:"rgb(64,64,64)",
|
|
506
|
+
Mergin:{ Top:1, Bottom:1,Left:0, Right:0 },
|
|
507
|
+
},
|
|
508
|
+
|
|
509
|
+
FieldColor:
|
|
510
|
+
{
|
|
511
|
+
Index:"rgb(245,245,245)", //序号
|
|
512
|
+
Symbol:"rgb(255,255,255)",
|
|
513
|
+
Name:"rgb(255,255,255)",
|
|
514
|
+
Amount:"rgb(2,226,244)", //成交金额
|
|
515
|
+
Vol:"rgb(192,192,0)", //成交量
|
|
516
|
+
BarTitle:'rgb(245,245,245)', //柱子文字
|
|
517
|
+
Text:"rgb(245,245,245)", //默认文本
|
|
518
|
+
},
|
|
519
|
+
|
|
520
|
+
CloseLine:
|
|
521
|
+
{
|
|
522
|
+
CloseColor:"rgb(30,144,255)",
|
|
523
|
+
YCloseColor:"rgba(220,220,220,0.5)", //昨收线
|
|
524
|
+
AreaColor:'rgba(220,220,220,0.2)',
|
|
525
|
+
},
|
|
526
|
+
|
|
527
|
+
KLine:
|
|
528
|
+
{
|
|
529
|
+
UpColor:"rgb(255,0,0)",
|
|
530
|
+
DownColor:"rgb(0,128,0)",
|
|
531
|
+
UnchagneColor:'rgb(240,240,240)',
|
|
532
|
+
DataWidth:16,
|
|
533
|
+
DistanceWidth:3
|
|
534
|
+
},
|
|
535
|
+
|
|
536
|
+
UpTextColor:"rgb(238,21,21)", //上涨文字颜色
|
|
537
|
+
DownTextColor:"rgb(25,158,0)", //下跌文字颜色
|
|
538
|
+
UnchagneTextColor:"rgb(228,228,228)", //平盘文字颜色
|
|
539
|
+
|
|
540
|
+
Tab:
|
|
541
|
+
{
|
|
542
|
+
Font:{ Size:12, Name:"微软雅黑" },
|
|
543
|
+
ScrollBarWidth:100,
|
|
544
|
+
ButtonColor:"rgb(13,12,15)",
|
|
545
|
+
BarColor:"rgb(48,48,48)",
|
|
546
|
+
BorderColor:'rgb(48,48,48)',
|
|
547
|
+
|
|
548
|
+
TabTitleColor:'rgb(153,153,153)',
|
|
549
|
+
TabSelectedTitleColor:'rgb(255,255,255)',
|
|
550
|
+
TabSelectedBGColor:"rgb(13,12,15)",
|
|
551
|
+
TabMoveOnTitleColor:"rgb(255,255,255)",
|
|
552
|
+
TabBGColor:"rgb(28,28,31)"
|
|
553
|
+
},
|
|
554
|
+
|
|
555
|
+
PageInfo:
|
|
556
|
+
{
|
|
557
|
+
Font:{ Size:15, Name:"微软雅黑"},
|
|
558
|
+
TextColor:"rgb(255,255,255)",
|
|
559
|
+
BGColor:"rgba(49,48,56,0.8)",
|
|
560
|
+
Mergin:{ Left:5, Right:5, Top:4, Bottom:2 },
|
|
561
|
+
},
|
|
562
|
+
|
|
563
|
+
DragRow:
|
|
564
|
+
{
|
|
565
|
+
Color:"rgba(255,250, 250,0.8)",
|
|
566
|
+
TextColor:'rgba(0,0, 0, 0.8)',
|
|
567
|
+
|
|
568
|
+
MoveRowColor:'rgb(135,206,250)',
|
|
569
|
+
SrcRowColor:'rgb(49,48,56)',
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
|
|
573
|
+
ScrollBar:
|
|
574
|
+
{
|
|
575
|
+
BorderColor:'rgb(38,38,41)', //边框线
|
|
576
|
+
XSplitTextColor:"rgb(240,240,240)",
|
|
577
|
+
XSplitLineColor:'rgb(38,38,41)',
|
|
578
|
+
|
|
579
|
+
Slider:
|
|
580
|
+
{
|
|
581
|
+
DateFont:`${14*GetDevicePixelRatio()}px 微软雅黑`,
|
|
582
|
+
DateColor:'rgb(240,240,240)',
|
|
583
|
+
BarColor:"rgb(105,105,105)",
|
|
584
|
+
BarAreaColor:"rgba(128,128,128,0.65)"
|
|
585
|
+
},
|
|
586
|
+
|
|
587
|
+
BGChart:
|
|
588
|
+
{
|
|
589
|
+
Color:"rgb(105,113,125)",
|
|
590
|
+
LineWidth:1,
|
|
591
|
+
AreaColor:"rgba(24,28,42,0.5)",
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
return BLACK_STYLE;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
var STYLE_TYPE_ID=
|
|
601
|
+
{
|
|
602
|
+
BLACK_ID:1, //黑色风格
|
|
603
|
+
WHITE_ID:0, //白色风格
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
function HQChartStyle()
|
|
607
|
+
{
|
|
608
|
+
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
HQChartStyle.GetStyleConfig=function(styleid) //获取一个风格的配置变量
|
|
612
|
+
{
|
|
613
|
+
switch (styleid)
|
|
614
|
+
{
|
|
615
|
+
case STYLE_TYPE_ID.BLACK_ID:
|
|
616
|
+
return GetBlackStyle();
|
|
617
|
+
case STYLE_TYPE_ID.WHITE_ID:
|
|
618
|
+
return new JSChartResource();
|
|
619
|
+
default:
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|