hqchart 1.1.15349 → 1.1.15354
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.
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -368,6 +368,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
368
368
|
if (option.KLine.FirstShowDate>19910101) chart.CustomShow={ Date:option.KLine.FirstShowDate, PageSize:option.KLine.PageSize }; //!!已弃用 新的格式"CustomShow"
|
|
369
369
|
if (option.KLine.RightSpaceCount>0) chart.RightSpaceCount=option.KLine.RightSpaceCount;
|
|
370
370
|
if (option.KLine.ZoomType>0) chart.ZoomType=option.KLine.ZoomType;
|
|
371
|
+
if (IFrameSplitOperator.IsNumber(option.KLine.PageSizeV2)) chart.KLineSize={ PageSize:option.KLine.PageSizeV2 };
|
|
371
372
|
if (option.KLine.DataWidth>=1) chart.KLineSize={ DataWidth:option.KLine.DataWidth };
|
|
372
373
|
if (IFrameSplitOperator.IsNumber(option.KLine.RightFormula)) chart.RightFormula=option.KLine.RightFormula;
|
|
373
374
|
}
|
|
@@ -13425,7 +13426,7 @@ function IChartFramePainting()
|
|
|
13425
13426
|
this.HorizontalMax; //Y轴最大值
|
|
13426
13427
|
this.HorizontalMin; //Y轴最小值
|
|
13427
13428
|
this.HorizontalReserved=null; //Y轴预留高度 { Top:上, Bottom:下 }
|
|
13428
|
-
this.XPointCount=
|
|
13429
|
+
this.XPointCount=g_JSChartResource.Frame.XPointCount; //X轴数据个数
|
|
13429
13430
|
|
|
13430
13431
|
this.ClientBGColor; //客户区背景色
|
|
13431
13432
|
|
|
@@ -31367,7 +31368,7 @@ function ChartKLine()
|
|
|
31367
31368
|
var data=this.Data.Data[i];
|
|
31368
31369
|
if (!data || data.Open==null || data.High==null || data.Low==null || data.Close==null) continue;
|
|
31369
31370
|
|
|
31370
|
-
if (this.DrawType
|
|
31371
|
+
if ([5,7,8,17,18].includes(this.DrawType) && data.OrderFlow && IFrameSplitOperator.IsNumber(data.OrderFlow.PriceOffset))
|
|
31371
31372
|
{
|
|
31372
31373
|
var high=data.High;
|
|
31373
31374
|
var low=data.Low;
|
|
@@ -31742,16 +31743,29 @@ function ChartKLine()
|
|
|
31742
31743
|
this.Canvas.stroke();
|
|
31743
31744
|
}
|
|
31744
31745
|
|
|
31746
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
31747
|
+
}
|
|
31748
|
+
|
|
31749
|
+
//绘制最高 最低点文字
|
|
31750
|
+
this.DrawOrderFlowBarHighLow=function(orderFlow, xKLine, cellHeight)
|
|
31751
|
+
{
|
|
31752
|
+
if (!orderFlow) return;
|
|
31753
|
+
if (!this.IsShowOrderText) return;
|
|
31754
|
+
var bDrawHigh=IFrameSplitOperator.IsNonEmptyArray(orderFlow.High);
|
|
31755
|
+
var bDrawLow=IFrameSplitOperator.IsNonEmptyArray(orderFlow.Low);
|
|
31756
|
+
if (!bDrawHigh && !bDrawLow) return;
|
|
31757
|
+
|
|
31758
|
+
var defaultFont=this.GetDynamicOrderFlowFont(cellHeight, xKLine.DataWidth);
|
|
31759
|
+
this.Canvas.textBaseline='middle';
|
|
31760
|
+
this.Canvas.textAlign='center';
|
|
31745
31761
|
|
|
31746
|
-
|
|
31747
|
-
|
|
31748
|
-
//上下文字
|
|
31749
|
-
if (orderFlow && IFrameSplitOperator.IsNonEmptyArray(orderFlow.High) && this.IsShowOrderText)
|
|
31762
|
+
//高点文字
|
|
31763
|
+
if (bDrawHigh)
|
|
31750
31764
|
{
|
|
31751
31765
|
for(var i=0;i<orderFlow.High.length;++i)
|
|
31752
31766
|
{
|
|
31753
31767
|
var item=orderFlow.High[i];
|
|
31754
|
-
var text;
|
|
31768
|
+
var text=null;
|
|
31755
31769
|
if (IFrameSplitOperator.IsString(item.Text)) text=item.Text;
|
|
31756
31770
|
else if (IFrameSplitOperator.IsNumber(item.Value)) text=item.Value.toString();
|
|
31757
31771
|
if (!text) continue;
|
|
@@ -31766,22 +31780,24 @@ function ChartKLine()
|
|
|
31766
31780
|
var itemFont=this.GetDynamicOrderFlowFont(cellHeight, xKLine.DataWidth, item.Font);
|
|
31767
31781
|
this.Canvas.font=itemFont;
|
|
31768
31782
|
this.Canvas.fillText(text,xKLine.Center,yPrice);
|
|
31769
|
-
this.Canvas.font=
|
|
31783
|
+
this.Canvas.font=defaultFont;
|
|
31770
31784
|
}
|
|
31771
31785
|
else
|
|
31772
31786
|
{
|
|
31787
|
+
|
|
31773
31788
|
this.Canvas.fillText(text,xKLine.Center,yPrice);
|
|
31774
31789
|
}
|
|
31775
31790
|
|
|
31776
31791
|
}
|
|
31777
31792
|
}
|
|
31778
31793
|
|
|
31779
|
-
|
|
31794
|
+
//低点
|
|
31795
|
+
if (bDrawLow)
|
|
31780
31796
|
{
|
|
31781
31797
|
for(var i=0;i<orderFlow.Low.length;++i)
|
|
31782
31798
|
{
|
|
31783
31799
|
var item=orderFlow.Low[i];
|
|
31784
|
-
var text;
|
|
31800
|
+
var text=null;
|
|
31785
31801
|
if (IFrameSplitOperator.IsString(item.Text)) text=item.Text;
|
|
31786
31802
|
else if (IFrameSplitOperator.IsNumber(item.Value)) text=item.Value.toString();
|
|
31787
31803
|
if (!text) continue;
|
|
@@ -31796,7 +31812,7 @@ function ChartKLine()
|
|
|
31796
31812
|
var itemFont=this.GetDynamicOrderFlowFont(cellHeight, xKLine.DataWidth, item.Font);
|
|
31797
31813
|
this.Canvas.font=itemFont;
|
|
31798
31814
|
this.Canvas.fillText(text,xKLine.Center,yPrice);
|
|
31799
|
-
this.Canvas.font=
|
|
31815
|
+
this.Canvas.font=defaultFont;
|
|
31800
31816
|
}
|
|
31801
31817
|
else
|
|
31802
31818
|
{
|
|
@@ -32116,6 +32132,7 @@ function ChartKLine()
|
|
|
32116
32132
|
this.Canvas.fillRect(barLeft,ToFixedRect(barTop-cellHeight/2),barWidth,ToFixedRect(barBottom-barTop+cellHeight));
|
|
32117
32133
|
var yKline={ Low:yLow, High:yHigh, Open:yOpen, Close:yClose };
|
|
32118
32134
|
var xKLine={ Left:barRight, Right:right, DataWidth:(right-barRight) };
|
|
32135
|
+
xKLine.Center=xKLine.Left+xKLine.DataWidth/2;
|
|
32119
32136
|
this.DrawOrderFlowBar_Style3(data.OrderFlow, data, xKLine, yKline, isHScreen);
|
|
32120
32137
|
}
|
|
32121
32138
|
|
|
@@ -32262,6 +32279,8 @@ function ChartKLine()
|
|
|
32262
32279
|
}
|
|
32263
32280
|
}
|
|
32264
32281
|
}
|
|
32282
|
+
|
|
32283
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
32265
32284
|
}
|
|
32266
32285
|
|
|
32267
32286
|
this.DrawOrderFlowBar_Style3=function(orderFlow, kItem, xKLine, yKline, isHScreen)
|
|
@@ -32350,6 +32369,8 @@ function ChartKLine()
|
|
|
32350
32369
|
}
|
|
32351
32370
|
}
|
|
32352
32371
|
}
|
|
32372
|
+
|
|
32373
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
32353
32374
|
}
|
|
32354
32375
|
|
|
32355
32376
|
|
|
@@ -32591,6 +32612,8 @@ function ChartKLine()
|
|
|
32591
32612
|
|
|
32592
32613
|
}
|
|
32593
32614
|
}
|
|
32615
|
+
|
|
32616
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
32594
32617
|
}
|
|
32595
32618
|
|
|
32596
32619
|
////////////////////////////////////////////////////////////////////////////////
|
|
@@ -32766,6 +32789,8 @@ function ChartKLine()
|
|
|
32766
32789
|
}
|
|
32767
32790
|
}
|
|
32768
32791
|
}
|
|
32792
|
+
|
|
32793
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
32769
32794
|
}
|
|
32770
32795
|
|
|
32771
32796
|
//////////////////////////////////////////////////////////////
|
|
@@ -34768,6 +34793,12 @@ function ChartKLineTable()
|
|
|
34768
34793
|
|
|
34769
34794
|
if (item.Name && rtBG.Width>10)
|
|
34770
34795
|
{
|
|
34796
|
+
if (item.BGColor)
|
|
34797
|
+
{
|
|
34798
|
+
this.Canvas.fillStyle=item.BGColor;
|
|
34799
|
+
this.Canvas.fillRect(rtBG.Left, rtBG.Top, rtBG.Width, rtBG.Height);
|
|
34800
|
+
}
|
|
34801
|
+
|
|
34771
34802
|
this.Canvas.fillStyle=item.Color?item.Color:this.TextColor;
|
|
34772
34803
|
this.Canvas.textBaseline='bottom';
|
|
34773
34804
|
this.Canvas.textAlign='left';
|
|
@@ -78191,7 +78222,8 @@ function JSChartResource()
|
|
|
78191
78222
|
YTopOffset:2*GetDevicePixelRatio(), //Y轴顶部文字向下偏移
|
|
78192
78223
|
YTextPadding:[2,2],
|
|
78193
78224
|
EnableRemoveZero:true, //移除小数点后面的0
|
|
78194
|
-
StringFormat:0
|
|
78225
|
+
StringFormat:0,
|
|
78226
|
+
XPointCount:10,
|
|
78195
78227
|
};
|
|
78196
78228
|
this.ToolbarButtonStyle=0;
|
|
78197
78229
|
|
|
@@ -79831,6 +79863,7 @@ function JSChartResource()
|
|
|
79831
79863
|
{
|
|
79832
79864
|
if (style.Frame.XBottomOffset) this.Frame.XBottomOffset=style.Frame.XBottomOffset;
|
|
79833
79865
|
if (style.Frame.YTopOffset) this.Frame.YTopOffset=style.Frame.YTopOffset;
|
|
79866
|
+
if (IFrameSplitOperator.IsNumber(style.Frame.XPointCount)) this.Frame.XPointCount=style.Frame.XPointCount;
|
|
79834
79867
|
if (style.Frame.PercentageText)
|
|
79835
79868
|
{
|
|
79836
79869
|
var item=style.Frame.PercentageText;
|
|
@@ -84092,21 +84125,32 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
84092
84125
|
this.BindMainData=function(hisData, showCount, chartOperator)
|
|
84093
84126
|
{
|
|
84094
84127
|
var isShowAll=false; //全部显示
|
|
84095
|
-
if (chartOperator
|
|
84128
|
+
if (chartOperator)
|
|
84129
|
+
{
|
|
84130
|
+
if (chartOperator.IsShowAll===true) isShowAll=true;
|
|
84131
|
+
if (IFrameSplitOperator.IsPlusNumber(chartOperator.PageSize)) showCount=chartOperator.PageSize;
|
|
84132
|
+
}
|
|
84096
84133
|
this.ChartPaint[0].Data=hisData;
|
|
84097
84134
|
this.ChartPaint[0].Symbol=this.Symbol;
|
|
84098
84135
|
|
|
84099
84136
|
if (this.KLineSize)
|
|
84100
84137
|
{
|
|
84101
|
-
if (
|
|
84102
|
-
{
|
|
84103
|
-
showCount=this.Frame.SubFrame[0].Frame.XPointCount-this.RightSpaceCount;
|
|
84104
|
-
}
|
|
84105
|
-
else
|
|
84138
|
+
if (IFrameSplitOperator.IsNumber(this.KLineSize.DataWidth))
|
|
84106
84139
|
{
|
|
84107
84140
|
var obj=this.Frame.SetDataWidth(this.KLineSize.DataWidth);
|
|
84108
84141
|
showCount=obj.XPointCount-this.RightSpaceCount;
|
|
84109
84142
|
this.KLineSize.DataWidth=null;
|
|
84143
|
+
this.KLineSize.PageSize=null;
|
|
84144
|
+
}
|
|
84145
|
+
else if (IFrameSplitOperator.IsNumber(this.KLineSize.PageSize))
|
|
84146
|
+
{
|
|
84147
|
+
showCount=this.KLineSize.PageSize;
|
|
84148
|
+
this.KLineSize.PageSize=null;
|
|
84149
|
+
this.KLineSize.DataWidth=null;
|
|
84150
|
+
}
|
|
84151
|
+
else
|
|
84152
|
+
{
|
|
84153
|
+
showCount=this.Frame.SubFrame[0].Frame.XPointCount-this.RightSpaceCount;
|
|
84110
84154
|
}
|
|
84111
84155
|
}
|
|
84112
84156
|
|
|
@@ -84770,7 +84814,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
84770
84814
|
{
|
|
84771
84815
|
var item=data.ChartOperator;
|
|
84772
84816
|
chartOperator={ };
|
|
84773
|
-
if (item.IsShowAll===true) chartOperator.IsShowAll=true;
|
|
84817
|
+
if (item.IsShowAll===true) chartOperator.IsShowAll=true;
|
|
84818
|
+
if (IFrameSplitOperator.IsNumber(item.PageSize)) chartOperator.PageSize=item.PageSize; //全部显示
|
|
84774
84819
|
}
|
|
84775
84820
|
|
|
84776
84821
|
this.BindMainData(bindData,this.PageSize,chartOperator);
|
|
@@ -4464,6 +4464,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4464
4464
|
if (option.KLine.FirstShowDate>19910101) chart.CustomShow={ Date:option.KLine.FirstShowDate, PageSize:option.KLine.PageSize }; //!!已弃用 新的格式"CustomShow"
|
|
4465
4465
|
if (option.KLine.RightSpaceCount>0) chart.RightSpaceCount=option.KLine.RightSpaceCount;
|
|
4466
4466
|
if (option.KLine.ZoomType>0) chart.ZoomType=option.KLine.ZoomType;
|
|
4467
|
+
if (IFrameSplitOperator.IsNumber(option.KLine.PageSizeV2)) chart.KLineSize={ PageSize:option.KLine.PageSizeV2 };
|
|
4467
4468
|
if (option.KLine.DataWidth>=1) chart.KLineSize={ DataWidth:option.KLine.DataWidth };
|
|
4468
4469
|
if (IFrameSplitOperator.IsNumber(option.KLine.RightFormula)) chart.RightFormula=option.KLine.RightFormula;
|
|
4469
4470
|
}
|
|
@@ -17521,7 +17522,7 @@ function IChartFramePainting()
|
|
|
17521
17522
|
this.HorizontalMax; //Y轴最大值
|
|
17522
17523
|
this.HorizontalMin; //Y轴最小值
|
|
17523
17524
|
this.HorizontalReserved=null; //Y轴预留高度 { Top:上, Bottom:下 }
|
|
17524
|
-
this.XPointCount=
|
|
17525
|
+
this.XPointCount=g_JSChartResource.Frame.XPointCount; //X轴数据个数
|
|
17525
17526
|
|
|
17526
17527
|
this.ClientBGColor; //客户区背景色
|
|
17527
17528
|
|
|
@@ -35463,7 +35464,7 @@ function ChartKLine()
|
|
|
35463
35464
|
var data=this.Data.Data[i];
|
|
35464
35465
|
if (!data || data.Open==null || data.High==null || data.Low==null || data.Close==null) continue;
|
|
35465
35466
|
|
|
35466
|
-
if (this.DrawType
|
|
35467
|
+
if ([5,7,8,17,18].includes(this.DrawType) && data.OrderFlow && IFrameSplitOperator.IsNumber(data.OrderFlow.PriceOffset))
|
|
35467
35468
|
{
|
|
35468
35469
|
var high=data.High;
|
|
35469
35470
|
var low=data.Low;
|
|
@@ -35838,16 +35839,29 @@ function ChartKLine()
|
|
|
35838
35839
|
this.Canvas.stroke();
|
|
35839
35840
|
}
|
|
35840
35841
|
|
|
35842
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
35843
|
+
}
|
|
35844
|
+
|
|
35845
|
+
//绘制最高 最低点文字
|
|
35846
|
+
this.DrawOrderFlowBarHighLow=function(orderFlow, xKLine, cellHeight)
|
|
35847
|
+
{
|
|
35848
|
+
if (!orderFlow) return;
|
|
35849
|
+
if (!this.IsShowOrderText) return;
|
|
35850
|
+
var bDrawHigh=IFrameSplitOperator.IsNonEmptyArray(orderFlow.High);
|
|
35851
|
+
var bDrawLow=IFrameSplitOperator.IsNonEmptyArray(orderFlow.Low);
|
|
35852
|
+
if (!bDrawHigh && !bDrawLow) return;
|
|
35853
|
+
|
|
35854
|
+
var defaultFont=this.GetDynamicOrderFlowFont(cellHeight, xKLine.DataWidth);
|
|
35855
|
+
this.Canvas.textBaseline='middle';
|
|
35856
|
+
this.Canvas.textAlign='center';
|
|
35841
35857
|
|
|
35842
|
-
|
|
35843
|
-
|
|
35844
|
-
//上下文字
|
|
35845
|
-
if (orderFlow && IFrameSplitOperator.IsNonEmptyArray(orderFlow.High) && this.IsShowOrderText)
|
|
35858
|
+
//高点文字
|
|
35859
|
+
if (bDrawHigh)
|
|
35846
35860
|
{
|
|
35847
35861
|
for(var i=0;i<orderFlow.High.length;++i)
|
|
35848
35862
|
{
|
|
35849
35863
|
var item=orderFlow.High[i];
|
|
35850
|
-
var text;
|
|
35864
|
+
var text=null;
|
|
35851
35865
|
if (IFrameSplitOperator.IsString(item.Text)) text=item.Text;
|
|
35852
35866
|
else if (IFrameSplitOperator.IsNumber(item.Value)) text=item.Value.toString();
|
|
35853
35867
|
if (!text) continue;
|
|
@@ -35862,22 +35876,24 @@ function ChartKLine()
|
|
|
35862
35876
|
var itemFont=this.GetDynamicOrderFlowFont(cellHeight, xKLine.DataWidth, item.Font);
|
|
35863
35877
|
this.Canvas.font=itemFont;
|
|
35864
35878
|
this.Canvas.fillText(text,xKLine.Center,yPrice);
|
|
35865
|
-
this.Canvas.font=
|
|
35879
|
+
this.Canvas.font=defaultFont;
|
|
35866
35880
|
}
|
|
35867
35881
|
else
|
|
35868
35882
|
{
|
|
35883
|
+
|
|
35869
35884
|
this.Canvas.fillText(text,xKLine.Center,yPrice);
|
|
35870
35885
|
}
|
|
35871
35886
|
|
|
35872
35887
|
}
|
|
35873
35888
|
}
|
|
35874
35889
|
|
|
35875
|
-
|
|
35890
|
+
//低点
|
|
35891
|
+
if (bDrawLow)
|
|
35876
35892
|
{
|
|
35877
35893
|
for(var i=0;i<orderFlow.Low.length;++i)
|
|
35878
35894
|
{
|
|
35879
35895
|
var item=orderFlow.Low[i];
|
|
35880
|
-
var text;
|
|
35896
|
+
var text=null;
|
|
35881
35897
|
if (IFrameSplitOperator.IsString(item.Text)) text=item.Text;
|
|
35882
35898
|
else if (IFrameSplitOperator.IsNumber(item.Value)) text=item.Value.toString();
|
|
35883
35899
|
if (!text) continue;
|
|
@@ -35892,7 +35908,7 @@ function ChartKLine()
|
|
|
35892
35908
|
var itemFont=this.GetDynamicOrderFlowFont(cellHeight, xKLine.DataWidth, item.Font);
|
|
35893
35909
|
this.Canvas.font=itemFont;
|
|
35894
35910
|
this.Canvas.fillText(text,xKLine.Center,yPrice);
|
|
35895
|
-
this.Canvas.font=
|
|
35911
|
+
this.Canvas.font=defaultFont;
|
|
35896
35912
|
}
|
|
35897
35913
|
else
|
|
35898
35914
|
{
|
|
@@ -36212,6 +36228,7 @@ function ChartKLine()
|
|
|
36212
36228
|
this.Canvas.fillRect(barLeft,ToFixedRect(barTop-cellHeight/2),barWidth,ToFixedRect(barBottom-barTop+cellHeight));
|
|
36213
36229
|
var yKline={ Low:yLow, High:yHigh, Open:yOpen, Close:yClose };
|
|
36214
36230
|
var xKLine={ Left:barRight, Right:right, DataWidth:(right-barRight) };
|
|
36231
|
+
xKLine.Center=xKLine.Left+xKLine.DataWidth/2;
|
|
36215
36232
|
this.DrawOrderFlowBar_Style3(data.OrderFlow, data, xKLine, yKline, isHScreen);
|
|
36216
36233
|
}
|
|
36217
36234
|
|
|
@@ -36358,6 +36375,8 @@ function ChartKLine()
|
|
|
36358
36375
|
}
|
|
36359
36376
|
}
|
|
36360
36377
|
}
|
|
36378
|
+
|
|
36379
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
36361
36380
|
}
|
|
36362
36381
|
|
|
36363
36382
|
this.DrawOrderFlowBar_Style3=function(orderFlow, kItem, xKLine, yKline, isHScreen)
|
|
@@ -36446,6 +36465,8 @@ function ChartKLine()
|
|
|
36446
36465
|
}
|
|
36447
36466
|
}
|
|
36448
36467
|
}
|
|
36468
|
+
|
|
36469
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
36449
36470
|
}
|
|
36450
36471
|
|
|
36451
36472
|
|
|
@@ -36687,6 +36708,8 @@ function ChartKLine()
|
|
|
36687
36708
|
|
|
36688
36709
|
}
|
|
36689
36710
|
}
|
|
36711
|
+
|
|
36712
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
36690
36713
|
}
|
|
36691
36714
|
|
|
36692
36715
|
////////////////////////////////////////////////////////////////////////////////
|
|
@@ -36862,6 +36885,8 @@ function ChartKLine()
|
|
|
36862
36885
|
}
|
|
36863
36886
|
}
|
|
36864
36887
|
}
|
|
36888
|
+
|
|
36889
|
+
this.DrawOrderFlowBarHighLow(orderFlow, xKLine, cellHeight); //绘制最高 最低点文字
|
|
36865
36890
|
}
|
|
36866
36891
|
|
|
36867
36892
|
//////////////////////////////////////////////////////////////
|
|
@@ -38864,6 +38889,12 @@ function ChartKLineTable()
|
|
|
38864
38889
|
|
|
38865
38890
|
if (item.Name && rtBG.Width>10)
|
|
38866
38891
|
{
|
|
38892
|
+
if (item.BGColor)
|
|
38893
|
+
{
|
|
38894
|
+
this.Canvas.fillStyle=item.BGColor;
|
|
38895
|
+
this.Canvas.fillRect(rtBG.Left, rtBG.Top, rtBG.Width, rtBG.Height);
|
|
38896
|
+
}
|
|
38897
|
+
|
|
38867
38898
|
this.Canvas.fillStyle=item.Color?item.Color:this.TextColor;
|
|
38868
38899
|
this.Canvas.textBaseline='bottom';
|
|
38869
38900
|
this.Canvas.textAlign='left';
|
|
@@ -82287,7 +82318,8 @@ function JSChartResource()
|
|
|
82287
82318
|
YTopOffset:2*GetDevicePixelRatio(), //Y轴顶部文字向下偏移
|
|
82288
82319
|
YTextPadding:[2,2],
|
|
82289
82320
|
EnableRemoveZero:true, //移除小数点后面的0
|
|
82290
|
-
StringFormat:0
|
|
82321
|
+
StringFormat:0,
|
|
82322
|
+
XPointCount:10,
|
|
82291
82323
|
};
|
|
82292
82324
|
this.ToolbarButtonStyle=0;
|
|
82293
82325
|
|
|
@@ -83927,6 +83959,7 @@ function JSChartResource()
|
|
|
83927
83959
|
{
|
|
83928
83960
|
if (style.Frame.XBottomOffset) this.Frame.XBottomOffset=style.Frame.XBottomOffset;
|
|
83929
83961
|
if (style.Frame.YTopOffset) this.Frame.YTopOffset=style.Frame.YTopOffset;
|
|
83962
|
+
if (IFrameSplitOperator.IsNumber(style.Frame.XPointCount)) this.Frame.XPointCount=style.Frame.XPointCount;
|
|
83930
83963
|
if (style.Frame.PercentageText)
|
|
83931
83964
|
{
|
|
83932
83965
|
var item=style.Frame.PercentageText;
|
|
@@ -88188,21 +88221,32 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
88188
88221
|
this.BindMainData=function(hisData, showCount, chartOperator)
|
|
88189
88222
|
{
|
|
88190
88223
|
var isShowAll=false; //全部显示
|
|
88191
|
-
if (chartOperator
|
|
88224
|
+
if (chartOperator)
|
|
88225
|
+
{
|
|
88226
|
+
if (chartOperator.IsShowAll===true) isShowAll=true;
|
|
88227
|
+
if (IFrameSplitOperator.IsPlusNumber(chartOperator.PageSize)) showCount=chartOperator.PageSize;
|
|
88228
|
+
}
|
|
88192
88229
|
this.ChartPaint[0].Data=hisData;
|
|
88193
88230
|
this.ChartPaint[0].Symbol=this.Symbol;
|
|
88194
88231
|
|
|
88195
88232
|
if (this.KLineSize)
|
|
88196
88233
|
{
|
|
88197
|
-
if (
|
|
88198
|
-
{
|
|
88199
|
-
showCount=this.Frame.SubFrame[0].Frame.XPointCount-this.RightSpaceCount;
|
|
88200
|
-
}
|
|
88201
|
-
else
|
|
88234
|
+
if (IFrameSplitOperator.IsNumber(this.KLineSize.DataWidth))
|
|
88202
88235
|
{
|
|
88203
88236
|
var obj=this.Frame.SetDataWidth(this.KLineSize.DataWidth);
|
|
88204
88237
|
showCount=obj.XPointCount-this.RightSpaceCount;
|
|
88205
88238
|
this.KLineSize.DataWidth=null;
|
|
88239
|
+
this.KLineSize.PageSize=null;
|
|
88240
|
+
}
|
|
88241
|
+
else if (IFrameSplitOperator.IsNumber(this.KLineSize.PageSize))
|
|
88242
|
+
{
|
|
88243
|
+
showCount=this.KLineSize.PageSize;
|
|
88244
|
+
this.KLineSize.PageSize=null;
|
|
88245
|
+
this.KLineSize.DataWidth=null;
|
|
88246
|
+
}
|
|
88247
|
+
else
|
|
88248
|
+
{
|
|
88249
|
+
showCount=this.Frame.SubFrame[0].Frame.XPointCount-this.RightSpaceCount;
|
|
88206
88250
|
}
|
|
88207
88251
|
}
|
|
88208
88252
|
|
|
@@ -88866,7 +88910,8 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
88866
88910
|
{
|
|
88867
88911
|
var item=data.ChartOperator;
|
|
88868
88912
|
chartOperator={ };
|
|
88869
|
-
if (item.IsShowAll===true) chartOperator.IsShowAll=true;
|
|
88913
|
+
if (item.IsShowAll===true) chartOperator.IsShowAll=true;
|
|
88914
|
+
if (IFrameSplitOperator.IsNumber(item.PageSize)) chartOperator.PageSize=item.PageSize; //全部显示
|
|
88870
88915
|
}
|
|
88871
88916
|
|
|
88872
88917
|
this.BindMainData(bindData,this.PageSize,chartOperator);
|
|
@@ -155386,7 +155431,7 @@ function ScrollBarBGChart()
|
|
|
155386
155431
|
|
|
155387
155432
|
|
|
155388
155433
|
|
|
155389
|
-
var HQCHART_VERSION="1.1.
|
|
155434
|
+
var HQCHART_VERSION="1.1.15353";
|
|
155390
155435
|
|
|
155391
155436
|
function PrintHQChartVersion()
|
|
155392
155437
|
{
|