Commit 66417a19 authored by Alexey.Musinov's avatar Alexey.Musinov

up

parent 3c5643e4
...@@ -4731,9 +4731,16 @@ function OfflineEditor () { ...@@ -4731,9 +4731,16 @@ function OfflineEditor () {
var box = selectedRange.getBBox0(); var box = selectedRange.getBBox0();
settings.putInColumns(!(box.r2 - box.r1 < box.c2 - box.c1)); settings.putInColumns(!(box.r2 - box.r1 < box.c2 - box.c1));
} }
settings.putRange(ws.getSelectionRangeValue());
//settings.putShowHorAxis(true); var oRangeValue = ws.getSelectionRangeValue();
//settings.putShowVerAxis(true); if (oRangeValue) {
settings.putRange(oRangeValue.asc_getName());
}
settings.putStyle(2);
settings.putTitle(Asc.c_oAscChartTitleShowSettings.noOverlay);
settings.putShowHorAxis(true);
settings.putShowVerAxis(true);
var series = AscFormat.getChartSeries(ws.model, settings); var series = AscFormat.getChartSeries(ws.model, settings);
if(series && series.series.length > 1) if(series && series.series.length > 1)
{ {
...@@ -4743,11 +4750,15 @@ function OfflineEditor () { ...@@ -4743,11 +4750,15 @@ function OfflineEditor () {
{ {
settings.putLegendPos(Asc.c_oAscChartLegendShowSettings.none); settings.putLegendPos(Asc.c_oAscChartLegendShowSettings.none);
} }
// settings.putHorAxisLabel(c_oAscChartHorAxisLabelShowSettings.none); settings.putHorAxisLabel(Asc.c_oAscChartHorAxisLabelShowSettings.none);
// settings.putVertAxisLabel(c_oAscChartVertAxisLabelShowSettings.none); settings.putVertAxisLabel(Asc.c_oAscChartVertAxisLabelShowSettings.none);
// settings.putDataLabelsPos(c_oAscChartDataLabelsPos.none); settings.putDataLabelsPos(Asc.c_oAscChartDataLabelsPos.none);
// settings.putHorGridLines(c_oAscGridLinesSettings.major); settings.putHorGridLines(Asc.c_oAscGridLinesSettings.major);
// settings.putVertGridLines(c_oAscGridLinesSettings.none); settings.putVertGridLines(Asc.c_oAscGridLinesSettings.none);
//settings.putInColumns(false);
settings.putSeparator(",");
settings.putLine(true);
settings.putShowMarker(false);
var vert_axis_settings = new AscCommon.asc_ValAxisSettings(); var vert_axis_settings = new AscCommon.asc_ValAxisSettings();
settings.putVertAxisProps(vert_axis_settings); settings.putVertAxisProps(vert_axis_settings);
......
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