Commit 7892f895 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

изменил отрисовку HBar Chart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55556 954022d7-b5bf-4e40-9824-e11837661b57
parent e6298332
...@@ -4986,25 +4986,25 @@ drawHBarChart.prototype = ...@@ -4986,25 +4986,25 @@ drawHBarChart.prototype =
{ {
var brush; var brush;
var pen; var pen;
var lineWidth; var numCache;
var dataSeries;
var seria; var seria;
this.cShapeDrawer.Graphics.SaveGrState(); this.cShapeDrawer.Graphics.SaveGrState();
this.cShapeDrawer.Graphics.AddClipRect(this.chartProp.chartGutter._left / this.chartProp.pxToMM, this.chartProp.chartGutter._top / this.chartProp.pxToMM, this.chartProp.trueWidth / this.chartProp.pxToMM, this.chartProp.trueHeight / this.chartProp.pxToMM); this.cShapeDrawer.Graphics.AddClipRect(this.chartProp.chartGutter._left / this.chartProp.pxToMM, this.chartProp.chartGutter._top / this.chartProp.pxToMM, this.chartProp.trueWidth / this.chartProp.pxToMM, this.chartProp.trueHeight / this.chartProp.pxToMM);
for (var i = 0; i < this.chartProp.series.length; i++) { for (var i = 0; i < this.paths.series.length; i++) {
seria = this.chartProp.series[i]; seria = this.chartProp.series[i];
brush = seria.brush; brush = seria.brush;
pen = seria.pen; pen = seria.pen;
dataSeries = seria.val.numRef ? seria.val.numRef.numCache.pts : seria.val.numLit.pts;
for (var j = 0; j < this.paths.series[i].length; j++) {
for (var j = 0; j < dataSeries.length; j++) { numCache = seria.val.numRef ? seria.val.numRef.numCache : seria.val.numLit;
if(dataSeries[j].pen) if(numCache.pts[j] && numCache.pts[j].pen)
pen = dataSeries[j].pen; pen = numCache.pts[j].pen;
if(dataSeries[j].brush) if(numCache.pts[j] && numCache.pts[j].brush)
brush = dataSeries[j].brush; brush = numCache.pts[j].brush;
this.cChartDrawer.drawPath(this.paths.series[i][j], pen, brush); if(this.paths.series[i][j])
this.cChartDrawer.drawPath(this.paths.series[i][j], pen, brush);
} }
} }
this.cShapeDrawer.Graphics.RestoreGrState(); this.cShapeDrawer.Graphics.RestoreGrState();
......
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