hqchart 1.1.14299 → 1.1.14307

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.
@@ -541,6 +541,11 @@ function GetBlackStyle()
541
541
  BorderColor:"rgb(90,90,90)",
542
542
  },
543
543
 
544
+ ChartSimplePie:
545
+ {
546
+ BorderColor:"rgb(220,220,220)",
547
+ },
548
+
544
549
  ChartDrawVolProfile:
545
550
  {
546
551
  BGColor:"rgba(244,250,254,0.3)",
@@ -231,7 +231,7 @@ HQData.Minute_RequestMinuteData=function(data, callback)
231
231
  }
232
232
  */
233
233
 
234
- stockItem.minute.length=50;
234
+ //stockItem.minute.length=50;
235
235
 
236
236
  var hqchartData={code:0, stock:[stockItem] };
237
237
 
@@ -1860,6 +1860,9 @@ HQData.Report_APIIndex=function(data, callback)
1860
1860
  HQData.APIIndex_DRAWTEXT_LINE(data, callback);
1861
1861
  else if (request.Data.indexname=="API_DRAW_SIMPLE_TABLE")
1862
1862
  HQData.APIIndex_DRAW_SIMPLE_TABLE(data, callback);
1863
+ else if (request.Data.indexname=="API_DRAW_SIMPLE_PIE")
1864
+ HQData.APIIndex_DRAW_SIMPLE_PIE(data, callback);
1865
+
1863
1866
  }
1864
1867
 
1865
1868
 
@@ -2264,8 +2267,19 @@ HQData.APIIndex_DRAWTEXT_LINE=function(data, callback)
2264
2267
  DrawData:
2265
2268
  {
2266
2269
  Price:price,
2267
- Text:{ Title:`价格:${price.toFixed(2)}`, Color:"rgb(255, 165, 0)" },
2268
- Line:{ Type:1, Color:"rgb(200,200,0)" }, //Type 0=不画 1=直线 2=虚线
2270
+ Text:
2271
+ {
2272
+ Title:`价格:${price.toFixed(2)}`,
2273
+ Color:"rgb(255, 165, 0)",
2274
+ },
2275
+
2276
+ Line:
2277
+ {
2278
+ Type:1, //Type 0=不画 1=直线 2=虚线
2279
+ //LineDash:[10,10],
2280
+ Color:"rgb(200,200,0)",
2281
+ //Width:1,
2282
+ },
2269
2283
  }
2270
2284
  }
2271
2285
  };
@@ -2327,3 +2341,50 @@ HQData.APIIndex_DRAW_SIMPLE_TABLE=function(data, callback)
2327
2341
  }
2328
2342
 
2329
2343
 
2344
+ HQData.APIIndex_DRAW_SIMPLE_PIE=function(data, callback)
2345
+ {
2346
+ data.PreventDefault=true;
2347
+ var hqchart=data.HQChart;
2348
+ var kData=hqchart.GetKData();
2349
+
2350
+ var tableData=
2351
+ {
2352
+ name:'DRAW_SIMPLE_PIE', type:1,
2353
+ Draw:
2354
+ {
2355
+ DrawType:'DRAW_SIMPLE_PIE',
2356
+ DrawData:
2357
+ {
2358
+ //BGColor:"rgba(250,250,210,0.8)",
2359
+ //BorderColor:"rgb(110,110,110)",
2360
+ //TextColor:"rgb(0,191,255)",
2361
+ Data:
2362
+ [
2363
+ { Value:10, Text:"数据1:10", Color:"rgba(255,182,193,0.8)", TextColor:"rgb(250,250,250)", LineColor:"rgb(255,182,193)"},
2364
+ { Value:70, Text:"数据2:70", Color:"rgba(255,0,255,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(255,0,255)"},
2365
+ { Value:110, Text:"数据3:110", Color:"rgba(72,61,139,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(72,61,139)"},
2366
+ { Value:210, Text:"数据4:210", Color:"rgba(0,191,255,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(0,191,255)"},
2367
+ { Value:310, Text:"数据5:310", Color:"rgba(255,140,0,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(255,140,0)"},
2368
+ ],
2369
+
2370
+ //TextFont:{ Size:16, Name:"微软雅黑"},
2371
+ //XOffset:-10,
2372
+ //YOffset:-15,
2373
+ Radius:80,
2374
+ }
2375
+ }
2376
+ };
2377
+
2378
+ var apiData=
2379
+ {
2380
+ code:0,
2381
+ stock:{ name:hqchart.Name, symbol:hqchart.Symbol },
2382
+ outdata: { date:kData.GetDate(), time:kData.GetTime() , outvar:[tableData] }
2383
+ };
2384
+
2385
+
2386
+ console.log('[HQData.APIIndex_DRAW_SIMPLE_PIE] apiData ', apiData);
2387
+ callback(apiData);
2388
+ }
2389
+
2390
+