Commit 9e0ff1e5 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

генерируем цвета для серий, где отсутсвует цвет.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49262 954022d7-b5bf-4e40-9824-e11837661b57
parent 58497859
......@@ -1929,6 +1929,7 @@ function drawChart(chart, arrValues, width, height) {
if(chart.series && chart.series.length != 0 && (chart.series[0].TxCache.Tx || chart.series[0].OutlineColor) && (theme && colorMap))
{
var uniColors;
for (var j = 0; j < chart.series.length; j++) {
if(chart.series[j].TxCache.Tx)
bar._otherProps._key[j] = chart.series[j].TxCache.Tx;
......@@ -1939,6 +1940,13 @@ function drawChart(chart, arrValues, width, height) {
curColor = getHexColor(rgba.R, rgba.G, rgba.B);
bar._otherProps._colors[j] = curColor;
}
else
{
uniColors = !uniColors ? chart.generateUniColors(chart.series.length): uniColors;
rgba = uniColors[j].color.RGBA;
curColor = getHexColor(rgba.R, rgba.G, rgba.B);
bar._otherProps._colors[j] = curColor;
}
}
}
if((chart.series && chart.series[0]) && (chart.series[0].TxCache.Tx || chart.series[0].OutlineColor))
......
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