hqchart 1.1.14313 → 1.1.14330

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.
@@ -546,6 +546,20 @@ function GetBlackStyle()
546
546
  BorderColor:"rgb(220,220,220)",
547
547
  },
548
548
 
549
+ ChartSimpleRadar:
550
+ {
551
+ //TextFont:{ Family:'微软雅黑' , Size:12 },
552
+ BorderColor:"rgb(230, 230, 230)",
553
+ //Offset:{ X:-5, Y:5 },
554
+ TextColor:"rgb(250, 250, 250)",
555
+ AryBGColor:['rgba(63,61,82,0.9)','rgba(56,55,80,0.9)'],
556
+ AryArea:
557
+ [
558
+ { Color:"rgba(242,154,118,0.4)", LineColor:"rgb(242,154,118)"},
559
+ { Color:"rgba(121,197,228,0.4)", LineColor:"rgb(92,165,196)"},
560
+ ],
561
+ },
562
+
549
563
  ChartDrawVolProfile:
550
564
  {
551
565
  BGColor:"rgba(244,250,254,0.3)",
@@ -1862,6 +1862,8 @@ HQData.Report_APIIndex=function(data, callback)
1862
1862
  HQData.APIIndex_DRAW_SIMPLE_TABLE(data, callback);
1863
1863
  else if (request.Data.indexname=="API_DRAW_SIMPLE_PIE")
1864
1864
  HQData.APIIndex_DRAW_SIMPLE_PIE(data, callback);
1865
+ else if (request.Data.indexname=="API_DRAW_SIMPLE_RADAR")
1866
+ HQData.APIIndex_DRAW_SIMPLE_RADAR(data, callback);
1865
1867
 
1866
1868
  }
1867
1869
 
@@ -2388,3 +2390,73 @@ HQData.APIIndex_DRAW_SIMPLE_PIE=function(data, callback)
2388
2390
  }
2389
2391
 
2390
2392
 
2393
+ HQData.APIIndex_DRAW_SIMPLE_RADAR=function(data, callback)
2394
+ {
2395
+ data.PreventDefault=true;
2396
+ var hqchart=data.HQChart;
2397
+ var kData=hqchart.GetKData();
2398
+
2399
+ var tableData=
2400
+ {
2401
+ name:'DRAW_SIMPLE_RADAR', type:1,
2402
+ Draw:
2403
+ {
2404
+ DrawType:'DRAW_SIMPLE_RADAR',
2405
+ DrawData:
2406
+ {
2407
+ //BGColor:"rgba(250,250,210,0.8)",
2408
+ //BorderColor:"rgb(110,110,110)",
2409
+ //TextColor:"rgb(0,191,255)",
2410
+ Data:
2411
+ [
2412
+ { Value:10, Name:"1月", Group:"组1"},
2413
+ { Value:70, Name:"2月", Group:"组1"},
2414
+ { Value:80, Name:"3月", Group:"组1"},
2415
+ { Value:10, Name:"4月", Group:"组1"},
2416
+ { Value:40, Name:"5月", Group:"组1"},
2417
+ { Value:60, Name:"6月", Group:"组1"},
2418
+ { Value:66, Name:"7月", Group:"组1"},
2419
+ { Value:69, Name:"8月", Group:"组1"},
2420
+ { Value:80, Name:"9月", Group:"组1"},
2421
+ { Value:30, Name:"10月", Group:"组1"},
2422
+ { Value:20, Name:"11月", Group:"组1"},
2423
+ { Value:68, Name:"12月", Group:"组1"},
2424
+ ],
2425
+
2426
+ AryIndex:
2427
+ [
2428
+ { Name:"1月" },
2429
+ { Name:"2月" },
2430
+ { Name:"3月" },
2431
+ { Name:"4月" },
2432
+ { Name:"5月" },
2433
+ { Name:"6月" },
2434
+ { Name:"7月" },
2435
+ { Name:"8月" },
2436
+ { Name:"9月" },
2437
+ { Name:"10月" },
2438
+ { Name:"11月" },
2439
+ { Name:"12月" },
2440
+ ],
2441
+
2442
+ //TextFont:{ Size:16, Name:"微软雅黑"},
2443
+ //XOffset:-10,
2444
+ //YOffset:-15,
2445
+ Radius:50,
2446
+ }
2447
+ }
2448
+ };
2449
+
2450
+ var apiData=
2451
+ {
2452
+ code:0,
2453
+ stock:{ name:hqchart.Name, symbol:hqchart.Symbol },
2454
+ outdata: { date:kData.GetDate(), time:kData.GetTime() , outvar:[tableData] }
2455
+ };
2456
+
2457
+
2458
+ console.log('[HQData.APIIndex_DRAW_SIMPLE_RADAR] apiData ', apiData);
2459
+ callback(apiData);
2460
+ }
2461
+
2462
+