Commit 13aec332 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Назначение цветов при перевороте серий в случае Pie

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51923 954022d7-b5bf-4e40-9824-e11837661b57
parent e417a919
......@@ -603,6 +603,12 @@ asc_CChart.prototype = {
}
}
// Colors
var seriaUniColors = _t.generateUniColors(revSeries.length);
for (var i = 0; i < revSeries.length; i++) {
revSeries[i].OutlineColor = seriaUniColors[i];
}
return revSeries;
},
......@@ -634,13 +640,12 @@ asc_CChart.prototype = {
var aInfo = [];
function legendInfo() { return { text: null, color: null, marker: null } };
var aColors = generateColors(this.series.length, arrBaseColors, true);
for ( var i = 0; i < this.series.length; i++ ) {
var info = new legendInfo();
info.text = this.series[i].asc_getTitle();
info.color = aColors[i];
info.color = this.series[i].asc_getOutlineColor();
info.marker = c_oAscLegendMarkerType.Line;
aInfo.push(info);
}
......
......@@ -79,7 +79,7 @@ CChartLegend.prototype =
this.setStartValues();
return;
var chart = this.chartGroup.chart;
var chart_legend = chart.getLegendInfo();
var chart_legend = chart.getLegendInfo(); //
if(chart_legend.length > 0)
{
var shape_type = chart_legend[0].marker === c_oAscLegendMarkerType.Line ? "line" : "rect";
......@@ -110,7 +110,6 @@ CChartLegend.prototype =
cur_legend_entry.brush.fill.color.color.RGBA = {R:legend_entry_obj.color.R, G:legend_entry_obj.color.G, B:legend_entry_obj.color.B, A:255}
}
}
},
draw: function(graphics)
......@@ -135,7 +134,7 @@ CChartLegend.prototype =
g_oTableId.m_bTurnOff = true;
var chart = this.chartGroup.chart;
var legend_info = chart.getLegendInfo();
var legend_info = chart.getLegendInfo(); //
this.calculatedEntry.length = 0;
if(legend_info.length > 0)
{
......
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