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.
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.14319";
8
+ var HQCHART_VERSION="1.1.14335";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -57394,6 +57394,8 @@ HQData.Report_APIIndex=function(data, callback)
57394
57394
  HQData.APIIndex_DRAW_SIMPLE_TABLE(data, callback);
57395
57395
  else if (request.Data.indexname=="API_DRAW_SIMPLE_PIE")
57396
57396
  HQData.APIIndex_DRAW_SIMPLE_PIE(data, callback);
57397
+ else if (request.Data.indexname=="API_DRAW_SIMPLE_RADAR")
57398
+ HQData.APIIndex_DRAW_SIMPLE_RADAR(data, callback);
57397
57399
 
57398
57400
  }
57399
57401
 
@@ -57420,13 +57422,14 @@ HQData.APIIndex_MULTI_POINT=function(data, callback)
57420
57422
  BGColor:"rgb(255,215,0)",
57421
57423
  PointRadius:10,
57422
57424
  LineWidth:2,
57425
+ Name:"最低价",
57423
57426
  Point:[ ]
57424
57427
  };
57425
57428
 
57426
57429
  for(var i=kData.Data.length-1, j=0; i>=0 && j<6; i-=5, ++j)
57427
57430
  {
57428
57431
  var item=kData.Data[i];
57429
- point.Point.push({Date:item.Date, Time:item.Time, Value:item.Low});
57432
+ point.Point.push({Date:item.Date, Time:item.Time, Value:"LOW"});
57430
57433
  }
57431
57434
 
57432
57435
  pointData.Draw.DrawData.push(point);
@@ -57438,6 +57441,7 @@ HQData.APIIndex_MULTI_POINT=function(data, callback)
57438
57441
  BGColor:"rgb(30,144,255)",
57439
57442
  PointRadius:5,
57440
57443
  LineWidth:1,
57444
+ Name:"中间价",
57441
57445
  Point:[ ]
57442
57446
  };
57443
57447
 
@@ -57920,6 +57924,76 @@ HQData.APIIndex_DRAW_SIMPLE_PIE=function(data, callback)
57920
57924
  }
57921
57925
 
57922
57926
 
57927
+ HQData.APIIndex_DRAW_SIMPLE_RADAR=function(data, callback)
57928
+ {
57929
+ data.PreventDefault=true;
57930
+ var hqchart=data.HQChart;
57931
+ var kData=hqchart.GetKData();
57932
+
57933
+ var tableData=
57934
+ {
57935
+ name:'DRAW_SIMPLE_RADAR', type:1,
57936
+ Draw:
57937
+ {
57938
+ DrawType:'DRAW_SIMPLE_RADAR',
57939
+ DrawData:
57940
+ {
57941
+ //BGColor:"rgba(250,250,210,0.8)",
57942
+ //BorderColor:"rgb(110,110,110)",
57943
+ //TextColor:"rgb(0,191,255)",
57944
+ Data:
57945
+ [
57946
+ { Value:10, Name:"1月", Group:"组1"},
57947
+ { Value:70, Name:"2月", Group:"组1"},
57948
+ { Value:80, Name:"3月", Group:"组1"},
57949
+ { Value:10, Name:"4月", Group:"组1"},
57950
+ { Value:40, Name:"5月", Group:"组1"},
57951
+ { Value:60, Name:"6月", Group:"组1"},
57952
+ { Value:66, Name:"7月", Group:"组1"},
57953
+ { Value:69, Name:"8月", Group:"组1"},
57954
+ { Value:80, Name:"9月", Group:"组1"},
57955
+ { Value:30, Name:"10月", Group:"组1"},
57956
+ { Value:20, Name:"11月", Group:"组1"},
57957
+ { Value:68, Name:"12月", Group:"组1"},
57958
+ ],
57959
+
57960
+ AryIndex:
57961
+ [
57962
+ { Name:"1月" },
57963
+ { Name:"2月" },
57964
+ { Name:"3月" },
57965
+ { Name:"4月" },
57966
+ { Name:"5月" },
57967
+ { Name:"6月" },
57968
+ { Name:"7月" },
57969
+ { Name:"8月" },
57970
+ { Name:"9月" },
57971
+ { Name:"10月" },
57972
+ { Name:"11月" },
57973
+ { Name:"12月" },
57974
+ ],
57975
+
57976
+ //TextFont:{ Size:16, Name:"微软雅黑"},
57977
+ //XOffset:-10,
57978
+ //YOffset:-15,
57979
+ Radius:50,
57980
+ }
57981
+ }
57982
+ };
57983
+
57984
+ var apiData=
57985
+ {
57986
+ code:0,
57987
+ stock:{ name:hqchart.Name, symbol:hqchart.Symbol },
57988
+ outdata: { date:kData.GetDate(), time:kData.GetTime() , outvar:[tableData] }
57989
+ };
57990
+
57991
+
57992
+ console.log('[HQData.APIIndex_DRAW_SIMPLE_RADAR] apiData ', apiData);
57993
+ callback(apiData);
57994
+ }
57995
+
57996
+
57923
57997
 
57924
57998
 
57925
57999
  /*暴露外部用的方法*/