hqchart 1.1.14320 → 1.1.14336

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
 
@@ -1888,13 +1890,14 @@ HQData.APIIndex_MULTI_POINT=function(data, callback)
1888
1890
  BGColor:"rgb(255,215,0)",
1889
1891
  PointRadius:10,
1890
1892
  LineWidth:2,
1893
+ Name:"最低价",
1891
1894
  Point:[ ]
1892
1895
  };
1893
1896
 
1894
1897
  for(var i=kData.Data.length-1, j=0; i>=0 && j<6; i-=5, ++j)
1895
1898
  {
1896
1899
  var item=kData.Data[i];
1897
- point.Point.push({Date:item.Date, Time:item.Time, Value:item.Low});
1900
+ point.Point.push({Date:item.Date, Time:item.Time, Value:"LOW"});
1898
1901
  }
1899
1902
 
1900
1903
  pointData.Draw.DrawData.push(point);
@@ -1906,6 +1909,7 @@ HQData.APIIndex_MULTI_POINT=function(data, callback)
1906
1909
  BGColor:"rgb(30,144,255)",
1907
1910
  PointRadius:5,
1908
1911
  LineWidth:1,
1912
+ Name:"中间价",
1909
1913
  Point:[ ]
1910
1914
  };
1911
1915
 
@@ -2388,3 +2392,73 @@ HQData.APIIndex_DRAW_SIMPLE_PIE=function(data, callback)
2388
2392
  }
2389
2393
 
2390
2394
 
2395
+ HQData.APIIndex_DRAW_SIMPLE_RADAR=function(data, callback)
2396
+ {
2397
+ data.PreventDefault=true;
2398
+ var hqchart=data.HQChart;
2399
+ var kData=hqchart.GetKData();
2400
+
2401
+ var tableData=
2402
+ {
2403
+ name:'DRAW_SIMPLE_RADAR', type:1,
2404
+ Draw:
2405
+ {
2406
+ DrawType:'DRAW_SIMPLE_RADAR',
2407
+ DrawData:
2408
+ {
2409
+ //BGColor:"rgba(250,250,210,0.8)",
2410
+ //BorderColor:"rgb(110,110,110)",
2411
+ //TextColor:"rgb(0,191,255)",
2412
+ Data:
2413
+ [
2414
+ { Value:10, Name:"1月", Group:"组1"},
2415
+ { Value:70, Name:"2月", Group:"组1"},
2416
+ { Value:80, Name:"3月", Group:"组1"},
2417
+ { Value:10, Name:"4月", Group:"组1"},
2418
+ { Value:40, Name:"5月", Group:"组1"},
2419
+ { Value:60, Name:"6月", Group:"组1"},
2420
+ { Value:66, Name:"7月", Group:"组1"},
2421
+ { Value:69, Name:"8月", Group:"组1"},
2422
+ { Value:80, Name:"9月", Group:"组1"},
2423
+ { Value:30, Name:"10月", Group:"组1"},
2424
+ { Value:20, Name:"11月", Group:"组1"},
2425
+ { Value:68, Name:"12月", Group:"组1"},
2426
+ ],
2427
+
2428
+ AryIndex:
2429
+ [
2430
+ { Name:"1月" },
2431
+ { Name:"2月" },
2432
+ { Name:"3月" },
2433
+ { Name:"4月" },
2434
+ { Name:"5月" },
2435
+ { Name:"6月" },
2436
+ { Name:"7月" },
2437
+ { Name:"8月" },
2438
+ { Name:"9月" },
2439
+ { Name:"10月" },
2440
+ { Name:"11月" },
2441
+ { Name:"12月" },
2442
+ ],
2443
+
2444
+ //TextFont:{ Size:16, Name:"微软雅黑"},
2445
+ //XOffset:-10,
2446
+ //YOffset:-15,
2447
+ Radius:50,
2448
+ }
2449
+ }
2450
+ };
2451
+
2452
+ var apiData=
2453
+ {
2454
+ code:0,
2455
+ stock:{ name:hqchart.Name, symbol:hqchart.Symbol },
2456
+ outdata: { date:kData.GetDate(), time:kData.GetTime() , outvar:[tableData] }
2457
+ };
2458
+
2459
+
2460
+ console.log('[HQData.APIIndex_DRAW_SIMPLE_RADAR] apiData ', apiData);
2461
+ callback(apiData);
2462
+ }
2463
+
2464
+