提交 70aba528 编写于 作者: HQChart's avatar HQChart

ver 8721

8720 小程序 KLineHScreenFrame::DrawHorizontal() 支持虚线
8719 AverageWidthFrame::DrawHorizontal() 修正底部Y轴刻度不显示
8718 K线增加Y分割线虚线设置
上级 6a61d203
......@@ -7799,27 +7799,42 @@ function AverageWidthFrame()
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
if (y!=bottom)
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
}
}
}
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
......@@ -9811,6 +9826,8 @@ function KLineHScreenFrame()
var bottom=this.ChartBorder.GetBottom();
var borderTop=this.ChartBorder.Top;
var borderBottom=this.ChartBorder.Bottom;
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
......@@ -9824,12 +9841,28 @@ function KLineHScreenFrame()
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
if (y!=left)
{
this.Canvas.strokeStyle=item.LineColor;
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
}
}
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && isDrawLeft)
{
......@@ -28636,6 +28669,7 @@ function JSChartResource()
this.FrameBorderPen="rgb(225,236,242)"; //边框颜色
this.FrameSplitPen="rgb(225,236,242)"; //刻度分割线
this.FrameDotSplitPen='rgb(105,105,105)'; //分割虚线
this.FrameYLineDash= null; //[5*GetDevicePixelRatio(), 5*GetDevicePixelRatio()]; //Y轴线段虚线点间距,填null 就是实线
this.FrameSplitTextColor="rgb(117,125,129)"; //刻度文字颜色
this.FrameSplitTextFont=14*GetDevicePixelRatio() +"px 微软雅黑"; //坐标刻度文字字体
this.FrameTitleBGColor="rgb(246,251,253)"; //标题栏背景色
......@@ -4124,27 +4124,42 @@ function AverageWidthFrame()
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
if (y!=bottom)
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
}
}
}
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
......@@ -6136,6 +6151,8 @@ function KLineHScreenFrame()
var bottom=this.ChartBorder.GetBottom();
var borderTop=this.ChartBorder.Top;
var borderBottom=this.ChartBorder.Bottom;
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
......@@ -6149,12 +6166,28 @@ function KLineHScreenFrame()
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
if (y!=left)
{
this.Canvas.strokeStyle=item.LineColor;
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
}
}
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && isDrawLeft)
{
......@@ -24961,6 +24994,7 @@ function JSChartResource()
this.FrameBorderPen="rgb(225,236,242)"; //边框颜色
this.FrameSplitPen="rgb(225,236,242)"; //刻度分割线
this.FrameDotSplitPen='rgb(105,105,105)'; //分割虚线
this.FrameYLineDash= null; //[5*GetDevicePixelRatio(), 5*GetDevicePixelRatio()]; //Y轴线段虚线点间距,填null 就是实线
this.FrameSplitTextColor="rgb(117,125,129)"; //刻度文字颜色
this.FrameSplitTextFont=14*GetDevicePixelRatio() +"px 微软雅黑"; //坐标刻度文字字体
this.FrameTitleBGColor="rgb(246,251,253)"; //标题栏背景色
......@@ -7843,27 +7843,42 @@ function AverageWidthFrame()
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
if (y!=bottom)
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
}
}
}
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
......@@ -9855,6 +9870,8 @@ function KLineHScreenFrame()
var bottom=this.ChartBorder.GetBottom();
var borderTop=this.ChartBorder.Top;
var borderBottom=this.ChartBorder.Bottom;
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
......@@ -9868,12 +9885,28 @@ function KLineHScreenFrame()
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
if (y!=left)
{
this.Canvas.strokeStyle=item.LineColor;
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
}
}
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && isDrawLeft)
{
......@@ -28680,6 +28713,7 @@ function JSChartResource()
this.FrameBorderPen="rgb(225,236,242)"; //边框颜色
this.FrameSplitPen="rgb(225,236,242)"; //刻度分割线
this.FrameDotSplitPen='rgb(105,105,105)'; //分割虚线
this.FrameYLineDash= null; //[5*GetDevicePixelRatio(), 5*GetDevicePixelRatio()]; //Y轴线段虚线点间距,填null 就是实线
this.FrameSplitTextColor="rgb(117,125,129)"; //刻度文字颜色
this.FrameSplitTextFont=14*GetDevicePixelRatio() +"px 微软雅黑"; //坐标刻度文字字体
this.FrameTitleBGColor="rgb(246,251,253)"; //标题栏背景色
......@@ -4124,27 +4124,42 @@ function AverageWidthFrame()
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
if (y!=bottom)
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
}
}
}
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
......@@ -6136,6 +6151,8 @@ function KLineHScreenFrame()
var bottom=this.ChartBorder.GetBottom();
var borderTop=this.ChartBorder.Top;
var borderBottom=this.ChartBorder.Bottom;
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
......@@ -6149,12 +6166,28 @@ function KLineHScreenFrame()
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
if (y!=left)
{
this.Canvas.strokeStyle=item.LineColor;
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
}
}
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && isDrawLeft)
{
......@@ -24961,6 +24994,7 @@ function JSChartResource()
this.FrameBorderPen="rgb(225,236,242)"; //边框颜色
this.FrameSplitPen="rgb(225,236,242)"; //刻度分割线
this.FrameDotSplitPen='rgb(105,105,105)'; //分割虚线
this.FrameYLineDash= null; //[5*GetDevicePixelRatio(), 5*GetDevicePixelRatio()]; //Y轴线段虚线点间距,填null 就是实线
this.FrameSplitTextColor="rgb(117,125,129)"; //刻度文字颜色
this.FrameSplitTextFont=14*GetDevicePixelRatio() +"px 微软雅黑"; //坐标刻度文字字体
this.FrameTitleBGColor="rgb(246,251,253)"; //标题栏背景色
......@@ -4124,27 +4124,42 @@ function AverageWidthFrame()
var item=this.HorizontalInfo[i];
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
if (y!=bottom)
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.strokeStyle=item.LineColor;
if (item.LineType==2)
{
this.Canvas.save();
this.Canvas.setLineDash([5,5]); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(left,ToFixedPoint(y));
this.Canvas.lineTo(right,ToFixedPoint(y));
this.Canvas.stroke();
}
}
}
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
else this.Canvas.textBaseline = "middle";
......@@ -6136,6 +6151,8 @@ function KLineHScreenFrame()
var bottom=this.ChartBorder.GetBottom();
var borderTop=this.ChartBorder.Top;
var borderBottom=this.ChartBorder.Bottom;
var left=this.ChartBorder.GetLeft();
var right=this.ChartBorder.GetRight();
var yPrev=null; //上一个坐标y的值
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
......@@ -6149,12 +6166,28 @@ function KLineHScreenFrame()
var y=this.GetYFromData(item.Value);
if (y!=null && Math.abs(y-yPrev)<this.MinYDistance) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle=item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
if (y!=left)
{
this.Canvas.strokeStyle=item.LineColor;
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
}
}
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0]!=null && isDrawLeft)
{
......@@ -24961,6 +24994,7 @@ function JSChartResource()
this.FrameBorderPen="rgb(225,236,242)"; //边框颜色
this.FrameSplitPen="rgb(225,236,242)"; //刻度分割线
this.FrameDotSplitPen='rgb(105,105,105)'; //分割虚线
this.FrameYLineDash= null; //[5*GetDevicePixelRatio(), 5*GetDevicePixelRatio()]; //Y轴线段虚线点间距,填null 就是实线
this.FrameSplitTextColor="rgb(117,125,129)"; //刻度文字颜色
this.FrameSplitTextFont=14*GetDevicePixelRatio() +"px 微软雅黑"; //坐标刻度文字字体
this.FrameTitleBGColor="rgb(246,251,253)"; //标题栏背景色
......@@ -2553,13 +2553,14 @@ function AverageWidthFrame()
var item = this.HorizontalInfo[i];
var y = this.GetYFromData(item.Value);
if (y != null && yPrev != null && Math.abs(y - yPrev) <this.MinYDistance) continue; //两个坐标在近了 就不画了
if (bottom==y) continue; //和底部线段重叠了就不绘制
this.Canvas.strokeStyle = item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(left, ToFixedPoint(y));
this.Canvas.lineTo(right, ToFixedPoint(y));
this.Canvas.stroke();
if (bottom!=y) //和底部线段重叠了就不绘制
{
this.Canvas.strokeStyle = item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(left, ToFixedPoint(y));
this.Canvas.lineTo(right, ToFixedPoint(y));
this.Canvas.stroke();
}
if (y >= bottom - 2) this.Canvas.textBaseline = 'bottom';
else if (y <= top + 2) this.Canvas.textBaseline = 'top';
......@@ -3717,6 +3718,7 @@ function KLineHScreenFrame()
var bottom = this.ChartBorder.GetBottom();
var borderTop = this.ChartBorder.Top;
var borderBottom = this.ChartBorder.Bottom;
var left=this.ChartBorder.GetLeft();
var yPrev = null; //上一个坐标y的值
for (var i = this.HorizontalInfo.length - 1; i >= 0; --i) //从左往右画分割线
......@@ -3725,12 +3727,28 @@ function KLineHScreenFrame()
var y = this.GetYFromData(item.Value);
if (y != null && Math.abs(y - yPrev) < 15) continue; //两个坐标在近了 就不画了
this.Canvas.strokeStyle = item.LineColor;
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y), top);
this.Canvas.lineTo(ToFixedPoint(y), bottom);
this.Canvas.stroke();
if (y!=left)
{
this.Canvas.strokeStyle = item.LineColor;
if (g_JSChartResource.FrameYLineDash)
{
this.Canvas.save();
this.Canvas.setLineDash(g_JSChartResource.FrameYLineDash); //虚线
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y),top);
this.Canvas.lineTo(ToFixedPoint(y),bottom);
this.Canvas.stroke();
this.Canvas.restore();
}
else
{
this.Canvas.beginPath();
this.Canvas.moveTo(ToFixedPoint(y), top);
this.Canvas.lineTo(ToFixedPoint(y), bottom);
this.Canvas.stroke();
}
}
//坐标信息 左边 间距小于10 不画坐标
if (item.Message[0] != null && borderTop > 10)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册