Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
bluefrankey
hqchart
提交
2449e37b
hqchart
项目概览
bluefrankey
/
hqchart
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
hqchart
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2449e37b
编写于
7月 19, 2019
作者:
J
jones
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ver 6325
上级
ab10b44d
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
423 addition
and
17 deletion
+423
-17
vuehqchart/package.json
vuehqchart/package.json
+1
-1
vuehqchart/src/jscommon/umychart.index.data.js
vuehqchart/src/jscommon/umychart.index.data.js
+5
-1
vuehqchart/src/jscommon/umychart.js
vuehqchart/src/jscommon/umychart.js
+134
-3
vuehqchart/src/jscommon/umychart.vue.components/stockinfo.vue
...qchart/src/jscommon/umychart.vue.components/stockinfo.vue
+0
-3
vuehqchart/src/jscommon/umychart.vue/umychart.vue.js
vuehqchart/src/jscommon/umychart.vue/umychart.vue.js
+5
-1
webhqchart.demo/jscommon/umychart.index.data.js
webhqchart.demo/jscommon/umychart.index.data.js
+5
-1
webhqchart.demo/jscommon/umychart.js
webhqchart.demo/jscommon/umychart.js
+134
-3
webhqchart/umychart.index.data.js
webhqchart/umychart.index.data.js
+5
-1
webhqchart/umychart.js
webhqchart/umychart.js
+134
-3
未找到文件。
vuehqchart/package.json
浏览文件 @
2449e37b
...
...
@@ -2,7 +2,7 @@
"name"
:
"hqchart"
,
"description"
:
"stock chart"
,
"author"
:
"jones2000"
,
"version"
:
"1.0.3
4
"
,
"version"
:
"1.0.3
5
"
,
"private"
:
false
,
"license"
:
"MIT"
,
"scripts"
:
{
...
...
vuehqchart/src/jscommon/umychart.index.data.js
浏览文件 @
2449e37b
...
...
@@ -2135,7 +2135,11 @@ JSIndexScript.prototype.ShareHolder=function()
let
data
=
{
Name
:
'
股东人数
'
,
Description
:
'
股东人数
'
,
IsMainIndex
:
false
,
FloatPrecision
:
0
,
Condition
:
{
Period
:[
CONDITION_PERIOD
.
KLINE_DAY_ID
]
},
Condition
:
{
Period
:[
CONDITION_PERIOD
.
KLINE_DAY_ID
,
CONDITION_PERIOD
.
KLINE_MONTH_ID
,
CONDITION_PERIOD
.
KLINE_WEEK_ID
,
CONDITION_PERIOD
.
KLINE_YEAR_ID
]
},
Args
:
[],
Script
:
//脚本
"
人数:FINANCE(100);
"
...
...
vuehqchart/src/jscommon/umychart.js
浏览文件 @
2449e37b
...
...
@@ -3973,6 +3973,7 @@ function KLineHScreenFrame()
var borderBottom=this.ChartBorder.Bottom;
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
for(var i=this.HorizontalInfo.length-1; i>=0; --i) //从左往右画分割线
{
var item=this.HorizontalInfo[i];
...
...
@@ -3986,7 +3987,7 @@ function KLineHScreenFrame()
this.Canvas.stroke();
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && borderTop>10)
if (item.Message[0]!=null && borderTop>10
*pixelTatio
)
{
if (item.Font!=null) this.Canvas.font=item.Font;
...
...
@@ -4003,7 +4004,7 @@ function KLineHScreenFrame()
}
//坐标信息 右边 间距小于10 不画坐标
if (item.Message[1]!=null && borderBottom>10)
if (item.Message[1]!=null && borderBottom>10
*pixelTatio
)
{
if (item.Font!=null) this.Canvas.font=item.Font;
...
...
@@ -4203,6 +4204,129 @@ function KLineHScreenFrame()
}
}
function OverlayKLineHScreenFrame()
{
this.newMethod=KLineHScreenFrame; //派生
this.newMethod();
delete this.newMethod;
this.MainFrame=null; //主框架
this.RightOffset=50;
this.PenBorder=g_JSChartResource.OverlayFrame.BolderPen; //'rgb(0,0,0)'
this.IsShow=true; //坐标是否显示
this.Title=null;
this.TitleColor=g_JSChartResource.OverlayFrame.TitleColor;
this.TitleFont=g_JSChartResource.OverlayFrame.TitleFont;
this.Draw=function()
{
this.SplitXYCoordinate();
if (this.IsShow)
{
this.DrawVertical();
this.DrawHorizontal();
this.DrawTitle();
}
this.SizeChange=false;
this.XYSplit=false;
}
this.DrawTitle=function() //画标题
{
/*
if (!this.Title) return;
var top = this.ChartBorder.GetTopTitle();
var bottom = this.ChartBorder.GetBottom();
var right=this.ChartBorder.GetRight();
right+=this.RightOffset;
this.Canvas.fillStyle=this.TitleColor;
this.Canvas.font=this.TitleFont;
this.Canvas.textAlign="center";
this.Canvas.textBaseline="top";
var xText=right-2,yText=top+(bottom-top)/2;
this.Canvas.save();
this.Canvas.translate(xText, yText);
this.Canvas.rotate(90 * Math.PI / 180);
this.Canvas.fillText(this.Title, 0, 0);
this.Canvas.restore();
*/
}
//分割x,y轴坐标信息
this.SplitXYCoordinate=function()
{
if (this.XYSplit==false) return;
if (this.YSplitOperator!=null) this.YSplitOperator.Operator();
// if (this.XSplitOperator!=null) this.XSplitOperator.Operator(); 子坐标和主坐标X轴一致 所以不用计算
}
//画Y轴
this.DrawHorizontal=function()
{
/*
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var bottom = this.ChartBorder.GetBottom();
var top = this.ChartBorder.GetTopTitle();
var borderRight=this.ChartBorder.Right;
right+=this.RightOffset;
var yPrev=null; //上一个坐标y的值
for(var i=this.HorizontalInfo.length-1; i>=0; --i) //从上往下画分割线
{
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
this.Canvas.strokeStyle=this.PenBorder;
this.Canvas.beginPath();
this.Canvas.moveTo(right-2,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
//坐标信息 右边 间距小于10 不画坐标
if (item.Message[1]!=null && borderRight>10)
{
if (item.Font!=null) this.Canvas.font=item.Font;
this.Canvas.fillStyle=item.TextColor;
this.Canvas.textAlign="left";
this.Canvas.fillText(item.Message[1],right+2,y);
}
yPrev=y;
}
*/
}
//画X轴
this.DrawVertical=function()
{
/*
var top=this.ChartBorder.GetTopEx();
//var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var bottom=this.ChartBorder.GetBottomEx();
right+=this.RightOffset;
this.Canvas.strokeStyle=this.PenBorder;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(right),ToFixedPoint(top));
this.Canvas.lineTo(ToFixedPoint(right),ToFixedPoint(bottom));
this.Canvas.stroke();
*/
}
}
function SubFrameItem()
{
this.Frame;
...
...
@@ -13616,6 +13740,11 @@ function DynamicChartTitlePainting()
{
var bottom=this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.TitleHeight/2; //上下居中显示
var right=this.Frame.ChartBorder.GetRight();
if (this.Frame.IsHScreen===true)
{
bottom=-this.Frame.ChartBorder.TitleHeight/2;
right=this.Frame.ChartBorder.GetHeight();
}
if (left>right) return;
var spaceWidth=5*GetDevicePixelRatio();
...
...
@@ -13769,6 +13898,8 @@ function DynamicChartTitlePainting()
left+=textWidth;
}
}
this.DrawOverlayIndex(left+5*GetDevicePixelRatio()); //间距都空点 和主指标区分开
}
}
...
...
@@ -18922,7 +19053,7 @@ function KLineChartContainer(uielement)
subFrame.Interval=this.OverlayIndexFrameWidth;
var overlayFrame=new OverlayIndexItem();
if (obj.Identify) overlayFrame.Identify=obj.Identify; //由外部指定id
frame=
new OverlayKLineFrame();
var frame= this.ClassName==='KLineChartHScreenContainer' ? new OverlayKLineHScreenFrame() :
new OverlayKLineFrame();
frame.Canvas=this.Canvas;
frame.MainFrame=subFrame.Frame;
frame.ChartBorder=subFrame.Frame.ChartBorder;
...
...
vuehqchart/src/jscommon/umychart.vue.components/stockinfo.vue
浏览文件 @
2449e37b
...
...
@@ -493,9 +493,6 @@
}
html
,
body
{
color
:
#666
;}
.PriceUp
,
.PriceUp
>
span
{
color
:
#ee1515
!
important
;
...
...
vuehqchart/src/jscommon/umychart.vue/umychart.vue.js
浏览文件 @
2449e37b
...
...
@@ -2135,7 +2135,11 @@ JSIndexScript.prototype.ShareHolder=function()
let data=
{
Name: '股东人数', Description: '股东人数', IsMainIndex: false,FloatPrecision:0,
Condition: { Period:[CONDITION_PERIOD.KLINE_DAY_ID] },
Condition: { Period:[
CONDITION_PERIOD.KLINE_DAY_ID,
CONDITION_PERIOD.KLINE_MONTH_ID,
CONDITION_PERIOD.KLINE_WEEK_ID,
CONDITION_PERIOD.KLINE_YEAR_ID] },
Args: [],
Script: //脚本
"人数:FINANCE(100);"
webhqchart.demo/jscommon/umychart.index.data.js
浏览文件 @
2449e37b
...
...
@@ -2135,7 +2135,11 @@ JSIndexScript.prototype.ShareHolder=function()
let
data
=
{
Name
:
'
股东人数
'
,
Description
:
'
股东人数
'
,
IsMainIndex
:
false
,
FloatPrecision
:
0
,
Condition
:
{
Period
:[
CONDITION_PERIOD
.
KLINE_DAY_ID
]
},
Condition
:
{
Period
:[
CONDITION_PERIOD
.
KLINE_DAY_ID
,
CONDITION_PERIOD
.
KLINE_MONTH_ID
,
CONDITION_PERIOD
.
KLINE_WEEK_ID
,
CONDITION_PERIOD
.
KLINE_YEAR_ID
]
},
Args
:
[],
Script
:
//脚本
"
人数:FINANCE(100);
"
...
...
webhqchart.demo/jscommon/umychart.js
浏览文件 @
2449e37b
...
...
@@ -3973,6 +3973,7 @@ function KLineHScreenFrame()
var borderBottom=this.ChartBorder.Bottom;
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
for(var i=this.HorizontalInfo.length-1; i>=0; --i) //从左往右画分割线
{
var item=this.HorizontalInfo[i];
...
...
@@ -3986,7 +3987,7 @@ function KLineHScreenFrame()
this.Canvas.stroke();
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && borderTop>10)
if (item.Message[0]!=null && borderTop>10
*pixelTatio
)
{
if (item.Font!=null) this.Canvas.font=item.Font;
...
...
@@ -4003,7 +4004,7 @@ function KLineHScreenFrame()
}
//坐标信息 右边 间距小于10 不画坐标
if (item.Message[1]!=null && borderBottom>10)
if (item.Message[1]!=null && borderBottom>10
*pixelTatio
)
{
if (item.Font!=null) this.Canvas.font=item.Font;
...
...
@@ -4203,6 +4204,129 @@ function KLineHScreenFrame()
}
}
function OverlayKLineHScreenFrame()
{
this.newMethod=KLineHScreenFrame; //派生
this.newMethod();
delete this.newMethod;
this.MainFrame=null; //主框架
this.RightOffset=50;
this.PenBorder=g_JSChartResource.OverlayFrame.BolderPen; //'rgb(0,0,0)'
this.IsShow=true; //坐标是否显示
this.Title=null;
this.TitleColor=g_JSChartResource.OverlayFrame.TitleColor;
this.TitleFont=g_JSChartResource.OverlayFrame.TitleFont;
this.Draw=function()
{
this.SplitXYCoordinate();
if (this.IsShow)
{
this.DrawVertical();
this.DrawHorizontal();
this.DrawTitle();
}
this.SizeChange=false;
this.XYSplit=false;
}
this.DrawTitle=function() //画标题
{
/*
if (!this.Title) return;
var top = this.ChartBorder.GetTopTitle();
var bottom = this.ChartBorder.GetBottom();
var right=this.ChartBorder.GetRight();
right+=this.RightOffset;
this.Canvas.fillStyle=this.TitleColor;
this.Canvas.font=this.TitleFont;
this.Canvas.textAlign="center";
this.Canvas.textBaseline="top";
var xText=right-2,yText=top+(bottom-top)/2;
this.Canvas.save();
this.Canvas.translate(xText, yText);
this.Canvas.rotate(90 * Math.PI / 180);
this.Canvas.fillText(this.Title, 0, 0);
this.Canvas.restore();
*/
}
//分割x,y轴坐标信息
this.SplitXYCoordinate=function()
{
if (this.XYSplit==false) return;
if (this.YSplitOperator!=null) this.YSplitOperator.Operator();
// if (this.XSplitOperator!=null) this.XSplitOperator.Operator(); 子坐标和主坐标X轴一致 所以不用计算
}
//画Y轴
this.DrawHorizontal=function()
{
/*
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var bottom = this.ChartBorder.GetBottom();
var top = this.ChartBorder.GetTopTitle();
var borderRight=this.ChartBorder.Right;
right+=this.RightOffset;
var yPrev=null; //上一个坐标y的值
for(var i=this.HorizontalInfo.length-1; i>=0; --i) //从上往下画分割线
{
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
this.Canvas.strokeStyle=this.PenBorder;
this.Canvas.beginPath();
this.Canvas.moveTo(right-2,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
//坐标信息 右边 间距小于10 不画坐标
if (item.Message[1]!=null && borderRight>10)
{
if (item.Font!=null) this.Canvas.font=item.Font;
this.Canvas.fillStyle=item.TextColor;
this.Canvas.textAlign="left";
this.Canvas.fillText(item.Message[1],right+2,y);
}
yPrev=y;
}
*/
}
//画X轴
this.DrawVertical=function()
{
/*
var top=this.ChartBorder.GetTopEx();
//var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var bottom=this.ChartBorder.GetBottomEx();
right+=this.RightOffset;
this.Canvas.strokeStyle=this.PenBorder;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(right),ToFixedPoint(top));
this.Canvas.lineTo(ToFixedPoint(right),ToFixedPoint(bottom));
this.Canvas.stroke();
*/
}
}
function SubFrameItem()
{
this.Frame;
...
...
@@ -13616,6 +13740,11 @@ function DynamicChartTitlePainting()
{
var bottom=this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.TitleHeight/2; //上下居中显示
var right=this.Frame.ChartBorder.GetRight();
if (this.Frame.IsHScreen===true)
{
bottom=-this.Frame.ChartBorder.TitleHeight/2;
right=this.Frame.ChartBorder.GetHeight();
}
if (left>right) return;
var spaceWidth=5*GetDevicePixelRatio();
...
...
@@ -13769,6 +13898,8 @@ function DynamicChartTitlePainting()
left+=textWidth;
}
}
this.DrawOverlayIndex(left+5*GetDevicePixelRatio()); //间距都空点 和主指标区分开
}
}
...
...
@@ -18922,7 +19053,7 @@ function KLineChartContainer(uielement)
subFrame.Interval=this.OverlayIndexFrameWidth;
var overlayFrame=new OverlayIndexItem();
if (obj.Identify) overlayFrame.Identify=obj.Identify; //由外部指定id
frame=
new OverlayKLineFrame();
var frame= this.ClassName==='KLineChartHScreenContainer' ? new OverlayKLineHScreenFrame() :
new OverlayKLineFrame();
frame.Canvas=this.Canvas;
frame.MainFrame=subFrame.Frame;
frame.ChartBorder=subFrame.Frame.ChartBorder;
...
...
webhqchart/umychart.index.data.js
浏览文件 @
2449e37b
...
...
@@ -2135,7 +2135,11 @@ JSIndexScript.prototype.ShareHolder=function()
let
data
=
{
Name
:
'
股东人数
'
,
Description
:
'
股东人数
'
,
IsMainIndex
:
false
,
FloatPrecision
:
0
,
Condition
:
{
Period
:[
CONDITION_PERIOD
.
KLINE_DAY_ID
]
},
Condition
:
{
Period
:[
CONDITION_PERIOD
.
KLINE_DAY_ID
,
CONDITION_PERIOD
.
KLINE_MONTH_ID
,
CONDITION_PERIOD
.
KLINE_WEEK_ID
,
CONDITION_PERIOD
.
KLINE_YEAR_ID
]
},
Args
:
[],
Script
:
//脚本
"
人数:FINANCE(100);
"
...
...
webhqchart/umychart.js
浏览文件 @
2449e37b
...
...
@@ -3973,6 +3973,7 @@ function KLineHScreenFrame()
var borderBottom=this.ChartBorder.Bottom;
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
for(var i=this.HorizontalInfo.length-1; i>=0; --i) //从左往右画分割线
{
var item=this.HorizontalInfo[i];
...
...
@@ -3986,7 +3987,7 @@ function KLineHScreenFrame()
this.Canvas.stroke();
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && borderTop>10)
if (item.Message[0]!=null && borderTop>10
*pixelTatio
)
{
if (item.Font!=null) this.Canvas.font=item.Font;
...
...
@@ -4003,7 +4004,7 @@ function KLineHScreenFrame()
}
//坐标信息 右边 间距小于10 不画坐标
if (item.Message[1]!=null && borderBottom>10)
if (item.Message[1]!=null && borderBottom>10
*pixelTatio
)
{
if (item.Font!=null) this.Canvas.font=item.Font;
...
...
@@ -4203,6 +4204,129 @@ function KLineHScreenFrame()
}
}
function OverlayKLineHScreenFrame()
{
this.newMethod=KLineHScreenFrame; //派生
this.newMethod();
delete this.newMethod;
this.MainFrame=null; //主框架
this.RightOffset=50;
this.PenBorder=g_JSChartResource.OverlayFrame.BolderPen; //'rgb(0,0,0)'
this.IsShow=true; //坐标是否显示
this.Title=null;
this.TitleColor=g_JSChartResource.OverlayFrame.TitleColor;
this.TitleFont=g_JSChartResource.OverlayFrame.TitleFont;
this.Draw=function()
{
this.SplitXYCoordinate();
if (this.IsShow)
{
this.DrawVertical();
this.DrawHorizontal();
this.DrawTitle();
}
this.SizeChange=false;
this.XYSplit=false;
}
this.DrawTitle=function() //画标题
{
/*
if (!this.Title) return;
var top = this.ChartBorder.GetTopTitle();
var bottom = this.ChartBorder.GetBottom();
var right=this.ChartBorder.GetRight();
right+=this.RightOffset;
this.Canvas.fillStyle=this.TitleColor;
this.Canvas.font=this.TitleFont;
this.Canvas.textAlign="center";
this.Canvas.textBaseline="top";
var xText=right-2,yText=top+(bottom-top)/2;
this.Canvas.save();
this.Canvas.translate(xText, yText);
this.Canvas.rotate(90 * Math.PI / 180);
this.Canvas.fillText(this.Title, 0, 0);
this.Canvas.restore();
*/
}
//分割x,y轴坐标信息
this.SplitXYCoordinate=function()
{
if (this.XYSplit==false) return;
if (this.YSplitOperator!=null) this.YSplitOperator.Operator();
// if (this.XSplitOperator!=null) this.XSplitOperator.Operator(); 子坐标和主坐标X轴一致 所以不用计算
}
//画Y轴
this.DrawHorizontal=function()
{
/*
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var bottom = this.ChartBorder.GetBottom();
var top = this.ChartBorder.GetTopTitle();
var borderRight=this.ChartBorder.Right;
right+=this.RightOffset;
var yPrev=null; //上一个坐标y的值
for(var i=this.HorizontalInfo.length-1; i>=0; --i) //从上往下画分割线
{
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
this.Canvas.strokeStyle=this.PenBorder;
this.Canvas.beginPath();
this.Canvas.moveTo(right-2,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
//坐标信息 右边 间距小于10 不画坐标
if (item.Message[1]!=null && borderRight>10)
{
if (item.Font!=null) this.Canvas.font=item.Font;
this.Canvas.fillStyle=item.TextColor;
this.Canvas.textAlign="left";
this.Canvas.fillText(item.Message[1],right+2,y);
}
yPrev=y;
}
*/
}
//画X轴
this.DrawVertical=function()
{
/*
var top=this.ChartBorder.GetTopEx();
//var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var bottom=this.ChartBorder.GetBottomEx();
right+=this.RightOffset;
this.Canvas.strokeStyle=this.PenBorder;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(right),ToFixedPoint(top));
this.Canvas.lineTo(ToFixedPoint(right),ToFixedPoint(bottom));
this.Canvas.stroke();
*/
}
}
function SubFrameItem()
{
this.Frame;
...
...
@@ -13616,6 +13740,11 @@ function DynamicChartTitlePainting()
{
var bottom=this.Frame.ChartBorder.GetTop()+this.Frame.ChartBorder.TitleHeight/2; //上下居中显示
var right=this.Frame.ChartBorder.GetRight();
if (this.Frame.IsHScreen===true)
{
bottom=-this.Frame.ChartBorder.TitleHeight/2;
right=this.Frame.ChartBorder.GetHeight();
}
if (left>right) return;
var spaceWidth=5*GetDevicePixelRatio();
...
...
@@ -13769,6 +13898,8 @@ function DynamicChartTitlePainting()
left+=textWidth;
}
}
this.DrawOverlayIndex(left+5*GetDevicePixelRatio()); //间距都空点 和主指标区分开
}
}
...
...
@@ -18922,7 +19053,7 @@ function KLineChartContainer(uielement)
subFrame.Interval=this.OverlayIndexFrameWidth;
var overlayFrame=new OverlayIndexItem();
if (obj.Identify) overlayFrame.Identify=obj.Identify; //由外部指定id
frame=
new OverlayKLineFrame();
var frame= this.ClassName==='KLineChartHScreenContainer' ? new OverlayKLineHScreenFrame() :
new OverlayKLineFrame();
frame.Canvas=this.Canvas;
frame.MainFrame=subFrame.Frame;
frame.ChartBorder=subFrame.Frame.ChartBorder;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录