Commit 569ab31b authored by Igor.Zotov's avatar Igor.Zotov

http://bugzserver/show_bug.cgi?id=30377 - Обрезаются линии графика и узлы в...

http://bugzserver/show_bug.cgi?id=30377 - Обрезаются линии графика и узлы в нулевых значениях горизонтальной оси

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64877 954022d7-b5bf-4e40-9824-e11837661b57
parent 0a62928d
......@@ -4956,8 +4956,12 @@ drawScatterChart.prototype =
{
var brush, pen, dataSeries, seria, markerBrush, markerPen, numCache;
//TODO 2 раза проходимся по сериям!
//add clip rect
this.cChartDrawer.cShapeDrawer.Graphics.SaveGrState();
this.cChartDrawer.cShapeDrawer.Graphics.AddClipRect(this.chartProp.chartGutter._left / this.chartProp.pxToMM, (this.chartProp.chartGutter._top - 2) / this.chartProp.pxToMM, this.chartProp.trueWidth / this.chartProp.pxToMM, this.chartProp.trueHeight / this.chartProp.pxToMM);
this.cChartDrawer.cShapeDrawer.Graphics.AddClipRect(this.chartProp.chartGutter._left / this.chartProp.pxToMM, (this.chartProp.chartGutter._top - 2) / this.chartProp.pxToMM, this.chartProp.trueWidth / this.chartProp.pxToMM, (this.chartProp.trueHeight + 2) / this.chartProp.pxToMM);
//draw lines
for (var i = 0; i < this.paths.series.length; i++) {
seria = this.chartProp.series[i];
brush = seria.brush;
......@@ -4978,10 +4982,20 @@ drawScatterChart.prototype =
this.cChartDrawer.drawPath(this.paths.series[i][n], pen, brush);
}
}
//end clip rect
this.cChartDrawer.cShapeDrawer.Graphics.RestoreGrState();
//draw points
for (var i = 0; i < this.paths.series.length; i++) {
//draw point
for(var k = 0; k < this.paths.points[i].length; k++)
{
seria = this.chartProp.series[i];
numCache = seria.yVal.numRef ? seria.yVal.numRef.numCache : seria.yVal.numLit;
dataSeries = this.paths.series[i];
if(numCache.pts[k])
{
markerBrush = numCache.pts[k].compiledMarker ? numCache.pts[k].compiledMarker.brush : null;
......@@ -4996,7 +5010,6 @@ drawScatterChart.prototype =
this.cChartDrawer.drawPath(this.paths.points[i][k].path, markerPen, markerBrush, true);
}
}
this.cChartDrawer.cShapeDrawer.Graphics.RestoreGrState();
},
_getYPosition: function(val, yPoints, isOx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment