Commit ef6c99b0 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete _colors_sequential

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51868 954022d7-b5bf-4e40-9824-e11837661b57
parent c7aedd10
......@@ -411,7 +411,6 @@
var hmargin = this._otherProps._hmargin;
var strokeStyle = this._otherProps._strokecolor;
var colors = this._otherProps._colors;
var sequentialColorIndex = 0;
var bold = this._otherProps._labels_above_bold;
var textOptions =
......@@ -477,13 +476,6 @@
this.context.strokeStyle = strokeStyle;
this.context.fillStyle = colors[0];
/**
* Sequential colors
*/
if (this._otherProps._colors_sequential) {
this.context.fillStyle = colors[i];
}
if (variant == 'sketch') {
this.context.lineCap = 'round';
......@@ -494,13 +486,6 @@
this.context.strokeStyle = colors[0];
/**
* Sequential colors
*/
if (this._otherProps._colors_sequential) {
this.context.strokeStyle = colors[i];
}
// Left side
this.context.moveTo(x + hmargin + 2, y + height - 2);
this.context.lineTo(x + hmargin , y - 2);
......@@ -574,13 +559,6 @@
// Set the colour for the dots
this.context.fillStyle = this._otherProps._colors[0];
/**
* Sequential colors
*/
if (this._otherProps._colors_sequential) {
this.context.fillStyle = colors[i];
}
this.context.stroke();
this.context.fill();
......@@ -645,16 +623,6 @@
this.context.strokeStyle = strokeStyle;
this.context.fillStyle = colors[j];
/**
* Sequential colors
*/
if (this._otherProps._colors_sequential && colors[sequentialColorIndex]) {
this.context.fillStyle = colors[sequentialColorIndex++];
} else if (this._otherProps._colors_sequential) {
this.context.fillStyle = colors[sequentialColorIndex - 1];
}
var individualBarWidth = (width - (2 * hmargin)) / this.data[i].length;
var height;
if('auto' == this._otherProps._ylabels_count)
......@@ -1295,7 +1263,6 @@
var hmargin = this._otherProps._hmargin;
var strokeStyle = this._otherProps._strokecolor;
var colors = this._otherProps._colors;
var sequentialColorIndex = 0;
var startX;
var startY;
var individualBarWidth;
......
......@@ -49,7 +49,6 @@ OfficeExcel.OtherProps = function()
this._scale_formatter = null;
this._colors = ['rgb(0,0,255)', '#0f0', '#00f', '#ff0', '#0ff', '#0f0'];
this._colors_sequential = false;
this._radius = null;
......
......@@ -554,11 +554,6 @@
this.context.strokeStyle = this._otherProps._strokecolor;
this.context.fillStyle = this._otherProps._colors[0];
// Sequential colors
if (this._otherProps._colors_sequential) {
this.context.fillStyle = this._otherProps._colors[colorIdx++];
}
this.context.strokeRect(barX, this._chartGutter._top + (i * height) + this._otherProps._vmargin, barWidth, barHeight);
this.context.fillRect(barX, this._chartGutter._top + (i * height) + this._otherProps._vmargin, barWidth, barHeight);
......@@ -581,15 +576,6 @@
if(this._otherProps._colors[j])
this.context.fillStyle = this._otherProps._colors[j];
// Sequential colors
if (this._otherProps._colors_sequential) {
this.context.fillStyle = this._otherProps._colors[colorIdx++];
}
var width;
if('auto' == this._otherProps._ylabels_count)
{
......
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