Commit 251a648a738ef7e9b92a9969f494d968deb0ca8f
1 parent
c00f7d82
Exists in
master
and in
112 other branches
Load parameter axes definition for a plot request
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
js/app/models/PlotObjects/PlotPanelObject.js
... | ... | @@ -310,6 +310,18 @@ Ext.define('amdaPlotObj.PlotPanelObject', { |
310 | 310 | newCurve.loadFromData(curveData,recs[0].getId()); |
311 | 311 | }); |
312 | 312 | } |
313 | + | |
314 | + //Axes | |
315 | + if (data.draw && data.draw.axes) { | |
316 | + Ext.Object.each(data.draw.axes, function (axisKey, axisData) { | |
317 | + var axis = me.axes().getById(axisKey); | |
318 | + if (axis) { | |
319 | + Ext.Object.each(axisData, function (optKey, optData) { | |
320 | + axis.set(optKey, optData); | |
321 | + }); | |
322 | + } | |
323 | + }); | |
324 | + } | |
313 | 325 | } |
314 | 326 | |
315 | 327 | me.dirty = true; |
... | ... |