Commit e823e667 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

кольцевая диаграмма

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54804 954022d7-b5bf-4e40-9824-e11837661b57
parent 80e89b4c
...@@ -536,7 +536,7 @@ CChartSpace.prototype.hitToAdjustment = function() ...@@ -536,7 +536,7 @@ CChartSpace.prototype.hitToAdjustment = function()
CChartSpace.prototype.getNeedColorCount = function() CChartSpace.prototype.getNeedColorCount = function()
{ {
var b_vary_markers = this.chart.plotArea.chart instanceof CPieChart || (this.chart.plotArea.chart.varyColors && this.chart.plotArea.chart.series.length === 1); var b_vary_markers = this.chart.plotArea.chart instanceof CDoughnutChart || this.chart.plotArea.chart instanceof CPieChart || (this.chart.plotArea.chart.varyColors && this.chart.plotArea.chart.series.length === 1);
var need_colors; var need_colors;
if(!b_vary_markers) if(!b_vary_markers)
{ {
...@@ -777,7 +777,7 @@ CChartSpace.prototype.recalculateSeriesColors = function() ...@@ -777,7 +777,7 @@ CChartSpace.prototype.recalculateSeriesColors = function()
var series = this.chart.plotArea.chart.series; var series = this.chart.plotArea.chart.series;
var parents = this.getParentObjects(); var parents = this.getParentObjects();
var RGBA = {R: 0, G: 0, B: 0, A: 255}; var RGBA = {R: 0, G: 0, B: 0, A: 255};
if(this.chart.plotArea.chart.varyColors && series.length === 1 || (this.chart.plotArea.chart instanceof CPieChart && this.chart.plotArea.chart.varyColors)) if(this.chart.plotArea.chart.varyColors && series.length === 1 || ((this.chart.plotArea.chart instanceof CPieChart || this.chart.plotArea.chart instanceof CDoughnutChart) && this.chart.plotArea.chart.varyColors))
{ {
var pts; var pts;
var ser = series[0]; var ser = series[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