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.
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.14298";
8
+ var HQCHART_VERSION="1.1.14306";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -55763,7 +55763,7 @@ HQData.Minute_RequestMinuteData=function(data, callback)
55763
55763
  }
55764
55764
  */
55765
55765
 
55766
- stockItem.minute.length=50;
55766
+ //stockItem.minute.length=50;
55767
55767
 
55768
55768
  var hqchartData={code:0, stock:[stockItem] };
55769
55769
 
@@ -57392,6 +57392,9 @@ HQData.Report_APIIndex=function(data, callback)
57392
57392
  HQData.APIIndex_DRAWTEXT_LINE(data, callback);
57393
57393
  else if (request.Data.indexname=="API_DRAW_SIMPLE_TABLE")
57394
57394
  HQData.APIIndex_DRAW_SIMPLE_TABLE(data, callback);
57395
+ else if (request.Data.indexname=="API_DRAW_SIMPLE_PIE")
57396
+ HQData.APIIndex_DRAW_SIMPLE_PIE(data, callback);
57397
+
57395
57398
  }
57396
57399
 
57397
57400
 
@@ -57796,8 +57799,19 @@ HQData.APIIndex_DRAWTEXT_LINE=function(data, callback)
57796
57799
  DrawData:
57797
57800
  {
57798
57801
  Price:price,
57799
- Text:{ Title:`价格:${price.toFixed(2)}`, Color:"rgb(255, 165, 0)" },
57800
- Line:{ Type:1, Color:"rgb(200,200,0)" }, //Type 0=不画 1=直线 2=虚线
57802
+ Text:
57803
+ {
57804
+ Title:`价格:${price.toFixed(2)}`,
57805
+ Color:"rgb(255, 165, 0)",
57806
+ },
57807
+
57808
+ Line:
57809
+ {
57810
+ Type:1, //Type 0=不画 1=直线 2=虚线
57811
+ //LineDash:[10,10],
57812
+ Color:"rgb(200,200,0)",
57813
+ //Width:1,
57814
+ },
57801
57815
  }
57802
57816
  }
57803
57817
  };
@@ -57859,6 +57873,53 @@ HQData.APIIndex_DRAW_SIMPLE_TABLE=function(data, callback)
57859
57873
  }
57860
57874
 
57861
57875
 
57876
+ HQData.APIIndex_DRAW_SIMPLE_PIE=function(data, callback)
57877
+ {
57878
+ data.PreventDefault=true;
57879
+ var hqchart=data.HQChart;
57880
+ var kData=hqchart.GetKData();
57881
+
57882
+ var tableData=
57883
+ {
57884
+ name:'DRAW_SIMPLE_PIE', type:1,
57885
+ Draw:
57886
+ {
57887
+ DrawType:'DRAW_SIMPLE_PIE',
57888
+ DrawData:
57889
+ {
57890
+ //BGColor:"rgba(250,250,210,0.8)",
57891
+ //BorderColor:"rgb(110,110,110)",
57892
+ //TextColor:"rgb(0,191,255)",
57893
+ Data:
57894
+ [
57895
+ { Value:10, Text:"数据1:10", Color:"rgba(255,182,193,0.8)", TextColor:"rgb(250,250,250)", LineColor:"rgb(255,182,193)"},
57896
+ { Value:70, Text:"数据2:70", Color:"rgba(255,0,255,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(255,0,255)"},
57897
+ { Value:110, Text:"数据3:110", Color:"rgba(72,61,139,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(72,61,139)"},
57898
+ { Value:210, Text:"数据4:210", Color:"rgba(0,191,255,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(0,191,255)"},
57899
+ { Value:310, Text:"数据5:310", Color:"rgba(255,140,0,0.8)",TextColor:"rgb(250,250,250)", LineColor:"rgb(255,140,0)"},
57900
+ ],
57901
+
57902
+ //TextFont:{ Size:16, Name:"微软雅黑"},
57903
+ //XOffset:-10,
57904
+ //YOffset:-15,
57905
+ Radius:80,
57906
+ }
57907
+ }
57908
+ };
57909
+
57910
+ var apiData=
57911
+ {
57912
+ code:0,
57913
+ stock:{ name:hqchart.Name, symbol:hqchart.Symbol },
57914
+ outdata: { date:kData.GetDate(), time:kData.GetTime() , outvar:[tableData] }
57915
+ };
57916
+
57917
+
57918
+ console.log('[HQData.APIIndex_DRAW_SIMPLE_PIE] apiData ', apiData);
57919
+ callback(apiData);
57920
+ }
57921
+
57922
+
57862
57923
 
57863
57924
 
57864
57925
  /*暴露外部用的方法*/