diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index bb5245706b..c029a2ba54 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -5167,9 +5167,11 @@ define([ return; } + var seltype = me.api.asc_getCellInfo().asc_getSelectionType(); (new SSE.Views.ChartWizardDialog({ api: me.api, props: {recommended: recommended}, + isEdit: (seltype == Asc.c_oAscSelectionType.RangeChart || seltype == Asc.c_oAscSelectionType.RangeChartText), handler: function(result, value) { if (result == 'ok') { me.api && me.api.asc_addChartSpace(value); diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index c27c778910..1d3b06a4d4 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -1208,6 +1208,7 @@ define([ api: me.api, props: {recommended: me.api.asc_getRecommendedChartData()}, type: me._state.ChartType, + isEdit: true, handler: function(result, value) { if (result == 'ok') { me.api && me.api.asc_addChartSpace(value); diff --git a/apps/spreadsheeteditor/main/app/view/ChartWizardDialog.js b/apps/spreadsheeteditor/main/app/view/ChartWizardDialog.js index 828789b0b7..ffa53aff62 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartWizardDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartWizardDialog.js @@ -164,7 +164,7 @@ define(['common/main/lib/view/AdvancedSettingsWindow', '<% }); %>', ].join(''); _.extend(this.options, { - title: this.textTitle, + title: options.isEdit ? this.textTitleChange : this.textTitle, items: groups, contentTemplate: _.template(template)({ groups: groups, @@ -535,9 +535,10 @@ define(['common/main/lib/view/AdvancedSettingsWindow', }, textTitle: 'Insert Chart', + textTitleChange: 'Change Chart Type', textRecommended: 'Recommended', txtSeriesDesc: 'Choose the chart type and axis for your data series', - textType: 'Type', + textType: 'Type', textSeries: 'Series', textSecondary: 'Secondary Axis', errorSecondaryAxis: 'The selected chart type requires the secondary axis that an existing chart is using. Select another chart type.', diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 111eb48464..72f9b88ac1 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -2127,6 +2127,18 @@ "SSE.Views.ChartTypeDialog.textStyle": "Style", "SSE.Views.ChartTypeDialog.textTitle": "Chart type", "SSE.Views.ChartTypeDialog.textType": "Type", + "SSE.Views.ChartWizardDialog.textTitle": "Insert Chart", + "SSE.Views.ChartWizardDialog.textTitleChange": "Change Chart Type", + "SSE.Views.ChartWizardDialog.textRecommended": "Recommended", + "SSE.Views.ChartWizardDialog.txtSeriesDesc": "Choose the chart type and axis for your data series", + "SSE.Views.ChartWizardDialog.textType": "Type", + "SSE.Views.ChartWizardDialog.textSeries": "Series", + "SSE.Views.ChartWizardDialog.textSecondary": "Secondary Axis", + "SSE.Views.ChartWizardDialog.errorSecondaryAxis": "The selected chart type requires the secondary axis that an existing chart is using. Select another chart type.", + "SSE.Views.ChartWizardDialog.errorComboSeries": "To create a combination chart, select at least two series of data.", + "SSE.Views.ChartWizardDialog.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order: opening price, max price, min price, closing price.", + "SSE.Views.ChartWizardDialog.errorMaxRows": "The maximum number of data series per chart is 255.", + "SSE.Views.ChartWizardDialog.errorMaxPoints": "The maximum number of points in series per chart is 4096.", "SSE.Views.CreatePivotDialog.textDataRange": "Source data range", "SSE.Views.CreatePivotDialog.textDestination": "Choose where to place the table", "SSE.Views.CreatePivotDialog.textExist": "Existing worksheet",