Commit 53181ea8 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@54585 954022d7-b5bf-4e40-9824-e11837661b57
parent b51fb6af
...@@ -1442,10 +1442,8 @@ DrawingObjectsController.prototype = ...@@ -1442,10 +1442,8 @@ DrawingObjectsController.prototype =
} }
}; };
setAxisGridLines(plot_area.getHorizontalAxis(), chartSettings.getHorGridLines()); setAxisGridLines(plot_area.getVerticalAxis(), chartSettings.getHorGridLines());
setAxisGridLines(plot_area.getVerticalAxis(), chartSettings.getVertGridLines()); setAxisGridLines(plot_area.getHorizontalAxis(), chartSettings.getVertGridLines());
var chart_type = plot_area.chart; var chart_type = plot_area.chart;
//Data Labels //Data Labels
......
...@@ -10963,6 +10963,20 @@ CPlotArea.prototype = ...@@ -10963,6 +10963,20 @@ CPlotArea.prototype =
return this.valAx; //TODO return this.valAx; //TODO
}, },
getAxisByTypes: function()
{
//var ret = {valAx:[], catAx: [], dateAx: []};
//for(var i = 0; i < this.axis.length; ++i)
//{
// var axis = this.axis[i];
//
// switch(this.axi)
//}
//this.valAx = null;
//this.catAx = null;
//this.dateAx = null;
},
Undo: function(data) Undo: function(data)
{ {
switch (data.Type) switch (data.Type)
......
...@@ -325,8 +325,8 @@ ...@@ -325,8 +325,8 @@
prot["getDataLabelsPos"] = prot.getDataLabelsPos; prot["getDataLabelsPos"] = prot.getDataLabelsPos;
prot["getHorAx"] = prot.getHorAx; prot["getHorAx"] = prot.getHorAx;
prot["getVertAx"] = prot.getVertAx; prot["getVertAx"] = prot.getVertAx;
prot["getHorGridLines"] = prot.getVertGridLines; prot["getHorGridLines"] = prot.getHorGridLines;
prot["putHorGridLines"] = prot.putVertGridLines; prot["putHorGridLines"] = prot.putHorGridLines;
prot["getVertGridLines"] = prot.getVertGridLines; prot["getVertGridLines"] = prot.getVertGridLines;
prot["putVertGridLines"] = prot.putVertGridLines; prot["putVertGridLines"] = prot.putVertGridLines;
......
...@@ -424,6 +424,7 @@ function CreateUniFillSolidFillWidthTintOrShade(unifill, effectVal) ...@@ -424,6 +424,7 @@ function CreateUniFillSolidFillWidthTintOrShade(unifill, effectVal)
var unicolor = ret.fill.color; var unicolor = ret.fill.color;
if(effectVal !== 0) if(effectVal !== 0)
{ {
effectVal*=100000.0;
unicolor.setMods(new CColorModifiers()); unicolor.setMods(new CColorModifiers());
var mod = new CColorMod(); var mod = new CColorMod();
if(effectVal > 0) if(effectVal > 0)
...@@ -515,8 +516,8 @@ function getArrayFillsFromBase(arrBaseFills, needFillsCount) ...@@ -515,8 +516,8 @@ function getArrayFillsFromBase(arrBaseFills, needFillsCount)
{ {
for (var j = 0; j < count_base; j++) for (var j = 0; j < count_base; j++)
{ {
var percent = (-70 + 140 * ( (i + 1) / (need_create + 1) )) * 1000; var percent = (-70 + 140 * ( (i + 1) / (need_create + 1) )) /100;
var color = CreateUniFillSolidFillWidthTintOrShade(arrBaseFills[j], 100000 - percent); var color = CreateUniFillSolidFillWidthTintOrShade(arrBaseFills[j], 1 - percent);
ret.push( color ); ret.push( color );
} }
} }
...@@ -537,6 +538,10 @@ CChartSpace.prototype.recalculateGridLines = function() ...@@ -537,6 +538,10 @@ CChartSpace.prototype.recalculateGridLines = function()
{ {
var compiled_grid_lines = new CLn(); var compiled_grid_lines = new CLn();
compiled_grid_lines.merge(subtleLine); compiled_grid_lines.merge(subtleLine);
if(compiled_grid_lines.Fill && compiled_grid_lines.Fill.fill && compiled_grid_lines.Fill.fill.color && compiled_grid_lines.Fill.fill.color.Mods)
{
compiled_grid_lines.Fill.fill.color.Mods.Mods.length = 0;
}
if(!compiled_grid_lines.Fill) if(!compiled_grid_lines.Fill)
{ {
compiled_grid_lines.setFill(new CUniFill()); compiled_grid_lines.setFill(new CUniFill());
...@@ -2224,7 +2229,9 @@ CChartSpace.prototype.recalculateAxis = function() ...@@ -2224,7 +2229,9 @@ CChartSpace.prototype.recalculateAxis = function()
} }
else if(chart_type === historyitem_type_BarChart && chart_object.barDir === BAR_DIR_BAR) else if(chart_type === historyitem_type_BarChart && chart_object.barDir === BAR_DIR_BAR)
{ {
//var cat_ax, val_ax;
//var axis_arr = plot_area.axis;
//for(i = 0; i < axis_arr.length; ++a)
} }
} }
}; };
......
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