From 7da46250d7af1ea0004b7807dd3cf8f0ae6d9f08 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 16 Dec 2016 17:48:10 +0300 Subject: [PATCH] [SSE mobile] set chart's captions --- .../mobile/app/controller/add/AddChart.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddChart.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddChart.js index cd24249d1..b754514a4 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddChart.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddChart.js @@ -66,8 +66,14 @@ define([ }, setApi: function (api) { - var me = this; - me.api = api; + this.api = api; + + var translateChart = new Asc.asc_CChartTranslate(); + translateChart.asc_setTitle (this.txtDiagramTitle); + translateChart.asc_setXAxis (this.txtXAxis); + translateChart.asc_setYAxis (this.txtYAxis); + translateChart.asc_setSeries(this.txtSeries); + this.api.asc_setChartTranslate(translateChart); }, onLaunch: function () { @@ -84,6 +90,11 @@ define([ settings.changeType(type); this.api.asc_addChartDrawingObject(settings); }, + + txtDiagramTitle: 'Chart Title', + txtXAxis: 'X Axis', + txtYAxis: 'Y Axis', + txtSeries: 'Seria' } })(), SSE.Controllers.AddChart || {})) }); \ No newline at end of file