Commit d0d8c41c 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@49956 954022d7-b5bf-4e40-9824-e11837661b57
parent c4dba755
...@@ -1224,6 +1224,10 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart, options) ...@@ -1224,6 +1224,10 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart, options)
if(maxY < newArr[0][j][1] && newArr[0][j][1] != '') if(maxY < newArr[0][j][1] && newArr[0][j][1] != '')
maxY = newArr[0][j][1] maxY = newArr[0][j][1]
} }
//меняем форматы осей для отдельных случаев точечных диаграмм
if(scatterArr[0] && scatter[0].length == 1)
formatCellScOy = formatCell;
formatCell = "General";
} }
else else
{ {
...@@ -1262,6 +1266,12 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart, options) ...@@ -1262,6 +1266,12 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart, options)
maxY = newArr[i-1][j][1] maxY = newArr[i-1][j][1]
} }
} }
//меняем форматы осей для отдельных случаев точечных диаграмм
if(scatterArr[0] && scatter[0].length == 1)
{
formatCellScOy = formatCell;
formatCell = "General";
}
} }
chart.ymin = minY; chart.ymin = minY;
chart.ymax = maxY; chart.ymax = maxY;
......
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