Commit 7da46250 authored by Maxim Kadushkin's avatar Maxim Kadushkin

[SSE mobile] set chart's captions

parent 0a98532b
...@@ -66,8 +66,14 @@ define([ ...@@ -66,8 +66,14 @@ define([
}, },
setApi: function (api) { setApi: function (api) {
var me = this; this.api = api;
me.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 () { onLaunch: function () {
...@@ -84,6 +90,11 @@ define([ ...@@ -84,6 +90,11 @@ define([
settings.changeType(type); settings.changeType(type);
this.api.asc_addChartDrawingObject(settings); this.api.asc_addChartDrawingObject(settings);
}, },
txtDiagramTitle: 'Chart Title',
txtXAxis: 'X Axis',
txtYAxis: 'Y Axis',
txtSeries: 'Seria'
} }
})(), SSE.Controllers.AddChart || {})) })(), SSE.Controllers.AddChart || {}))
}); });
\ No newline at end of file
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