Blame view

js/app/views/CatalogVisuScatter.js 12.8 KB
33705dc4   Benjamin Renard   Catalog visu rework
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * Project       AMDA-NG
 * Name          CatalogVisuScatter.js
 * @class 	   amdaUI.CatalogVisuScatter
 * @extends      Ext.container.Container
 * @brief	   Scatter Visualization Module UI definition (View)
 * @author 	  elena
 */

Ext.define('amdaUI.CatalogVisuScatter', {
	extend: 'Ext.form.Panel',
	alias: 'widget.panelCatalogVisuScatter',
536a676d   Erdogan Furkan   #10701 & #10702 Done
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	requires: [
		'amdaPlotObj.PlotObjectConfig',
		'amdaPlotComp.PlotColorPicker'
	],

	availableSymbolsTypes: [
		{ 'key': 'circle', 'value': 'Dot' },
		{ 'key': 'cross-open', 'value': 'Plus' },
		{ 'key': 'circle-open', 'value': 'Circle' },
		{ 'key': 'x-open', 'value': 'Crux' },
		{ 'key': 'square-open', 'value': 'Square' },
		{ 'key': 'triangle-up-open', 'value': 'Triangle Up' },
		{ 'key': 'triangle-down-open', 'value': 'Triangle Down' },
		{ 'key': 'triangle-left-open', 'value': 'Triangle Left' },
		{ 'key': 'triangle-right-open', 'value': 'Triangle Right' },
		{ 'key': 'circle-cross-open', 'value': 'Crux in circle' },
		{ 'key': 'circle-open-dot', 'value': 'Dot in circle' },
		{ 'key': 'diamond', 'value': 'Diamond' },
		{ 'key': 'star-open', 'value': 'Star' },
4c5eec8c   Erdogan Furkan   Minor fixes
32
		{ 'key': 'hexagram-open', 'value': 'Hexagram' },
536a676d   Erdogan Furkan   #10701 & #10702 Done
33
34
35
		{ 'key': 'square', 'value': 'Full square' },
		{ 'key': 'star', 'value': 'Full star' }
	],
33705dc4   Benjamin Renard   Catalog visu rework
36
37
38
39
40
41

	constructor: function(config) {
		this.init(config);
		this.callParent(arguments);
	},

536a676d   Erdogan Furkan   #10701 & #10702 Done
42
  getChartConfig: function(catalogStore, isColorBar=true) {
1a0151a5   Benjamin Renard   wip
43
44
45
46
    var plotTypeField = Ext.getCmp('visu-scatter-type');
    var plotType = plotTypeField.getValue();

    var plotColorField = Ext.getCmp('visu-scatter-color');
536a676d   Erdogan Furkan   #10701 & #10702 Done
47
48
49
50
51
52
53
54
55
    var plotColor=plotColorField.ownerCt.colorDisplayer.value;

	var plotSizeField = Ext.getCmp('visu-scatter-size');
	var plotSize = plotSizeField.getValue();

	var plotSymbolField = Ext.getCmp('visu-scatter-symbol');
	var plotSymbol = plotSymbolField.getValue();	

	//plotColor = plotColorField.getValue();
903e5e09   Benjamin Renard   WIP
56
57
    var xAxisOpt = this.getAxisOptions('X');
    var yAxisOpt = this.getAxisOptions('Y');
536a676d   Erdogan Furkan   #10701 & #10702 Done
58
	var zAxisOpt = this.getAxisOptions('Z');
33705dc4   Benjamin Renard   Catalog visu rework
59

b0720b91   Benjamin Renard   Finalize catalog ...
60
    if ((!xAxisOpt.paramId) || (xAxisOpt.paramId == '')) {
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
61
      //myDesktopApp.errorMsg('Missing parameter selection for X axis');
b0720b91   Benjamin Renard   Finalize catalog ...
62
63
64
65
      return null;
    }

    if ((!yAxisOpt.paramId) || (yAxisOpt.paramId == '')) {
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
66
      //myDesktopApp.errorMsg('Missing parameter selection for Y axis');
b0720b91   Benjamin Renard   Finalize catalog ...
67
68
      return null;
    }
536a676d   Erdogan Furkan   #10701 & #10702 Done
69
70
71
72
73
	if ((!zAxisOpt.paramId) || (zAxisOpt.paramId == '')) {
		//myDesktopApp.errorMsg('Missing parameter selection for Y axis');
		isColorBar= false;
	}

3ccb373f   furkan   #6899 - Done
74
75
	var x=[];
	var y=[];
536a676d   Erdogan Furkan   #10701 & #10702 Done
76
	var z=[];
560766be   furkan   #6899- Last modif...
77
	var text=[];
3ccb373f   furkan   #6899 - Done
78
79
80
	catalogStore.each(function(item){
		x.push(item.get(xAxisOpt.paramId));
		y.push(item.get(yAxisOpt.paramId));
536a676d   Erdogan Furkan   #10701 & #10702 Done
81
		if (isColorBar){
10643315   Erdogan Furkan   #10702 - Comments...
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
			if (zAxisOpt.logscale && zAxisOpt.range ){
				if (Math.log10(item.get(zAxisOpt.paramId)) >= zAxisOpt.range.min && Math.log10(item.get(zAxisOpt.paramId)) <= zAxisOpt.range.max){
					z.push(Math.log10(item.get(zAxisOpt.paramId)));
				}
				else {
					z.push(NaN);
				}
			}
			else if(zAxisOpt.logscale && !zAxisOpt.range){
				z.push(Math.log10(item.get(zAxisOpt.paramId)));
			}
			else if( !zAxisOpt.logscale && zAxisOpt.range){
				if (item.get(zAxisOpt.paramId) >= zAxisOpt.range.min && item.get(zAxisOpt.paramId) <= zAxisOpt.range.max){
					z.push(item.get(zAxisOpt.paramId));
				}
				else {
					z.push(NaN);
				}
			}
			else{
				z.push(item.get(zAxisOpt.paramId));
			}
536a676d   Erdogan Furkan   #10701 & #10702 Done
104
		}
560766be   furkan   #6899- Last modif...
105
		text.push(''+item.get('start').toISOString()+'<br>'+item.get('stop').toISOString());
3ccb373f   furkan   #6899 - Done
106
	});
560766be   furkan   #6899- Last modif...
107
	
3ccb373f   furkan   #6899 - Done
108
109
110
	var data =[{
	x: x,
	y: y,
10643315   Erdogan Furkan   #10702 - Comments...
111
	mode: (plotType=='point+line') ? 'lines+markers' : 'markers',
560766be   furkan   #6899- Last modif...
112
	text: text,
3ccb373f   furkan   #6899 - Done
113
	marker:{
10643315   Erdogan Furkan   #10702 - Comments...
114
		color: (isColorBar) ?  z : plotColor,
536a676d   Erdogan Furkan   #10701 & #10702 Done
115
116
		colorbar:(isColorBar) ? {
			len:0.7,
10643315   Erdogan Furkan   #10702 - Comments...
117
118
			title: (zAxisOpt.logscale) ? 'log'+'10'.sub()+'('+zAxisOpt.title+')' : zAxisOpt.title,
			titleside:'right',
536a676d   Erdogan Furkan   #10701 & #10702 Done
119
120
			titlefont:{size:10},
		  } : null,
10643315   Erdogan Furkan   #10702 - Comments...
121
		colorscale: (isColorBar) ?'Jet':null,
536a676d   Erdogan Furkan   #10701 & #10702 Done
122
123
124
125
		showscale:isColorBar,
		symbol: plotSymbol,
		size : plotSize,
	},
3ccb373f   furkan   #6899 - Done
126
	type: 'scatter'}];
1a0151a5   Benjamin Renard   wip
127

3ccb373f   furkan   #6899 - Done
128
129
	var layout = {
		margin: {l: 50,r: 40, b: 40,t: 40,pad: 5},
13374f3f   Erdogan Furkan   #10584 - Done
130
131
132
133
134
135
136
137
		xaxis: {
			title: xAxisOpt.title, range: !xAxisOpt.range ? null : [xAxisOpt.range.min,xAxisOpt.range.max],
			type: xAxisOpt.logscale ? 'log' : null
		},
		yaxis: {
			title: yAxisOpt.title, range: !yAxisOpt.range ? null : [yAxisOpt.range.min,yAxisOpt.range.max],
			type: yAxisOpt.logscale ? 'log' : null
		},
560766be   furkan   #6899- Last modif...
138
139
140
		hovermode: "closest",
		hoverlabel :{ font:{size:10}}	
	};
3ccb373f   furkan   #6899 - Done
141
142
	var result =  {data:data,layout:layout}
    return result;
33705dc4   Benjamin Renard   Catalog visu rework
143
144
  },

33705dc4   Benjamin Renard   Catalog visu rework
145
  getAxisOptions: function(axisName) {
903e5e09   Benjamin Renard   WIP
146
    var opt = {
1a0151a5   Benjamin Renard   wip
147
      paramId: '',
903e5e09   Benjamin Renard   WIP
148
149
      title: axisName+' axis'
    };
33705dc4   Benjamin Renard   Catalog visu rework
150

903e5e09   Benjamin Renard   WIP
151
152
153
154
155
    var axisParamField = Ext.getCmp('visu-scatter-' + axisName + '-param');
    var paramFieldId = axisParamField.getValue();
    if (paramFieldId && (paramFieldId != "")) {
      var paramField = axisParamField.getStore().getById(axisParamField.getValue());
      if (paramField) {
b0720b91   Benjamin Renard   Finalize catalog ...
156
        opt.paramId = paramField.get('id');
738e0997   Benjamin Renard   Draw histogram
157
				opt.title = paramField.get('name');
903e5e09   Benjamin Renard   WIP
158
159
      }
    }
33705dc4   Benjamin Renard   Catalog visu rework
160
161

    var axisTitleField = Ext.getCmp('visu-scatter-'+axisName+'-title');
903e5e09   Benjamin Renard   WIP
162
163
164
165
166
    var axisTitle = axisTitleField.getValue();
    if (axisTitle && (axisTitle != "")) {
      opt.title = axisTitle;
    }

1a0151a5   Benjamin Renard   wip
167
    var axisScalingField = Ext.getCmp('visu-scatter-'+axisName+'-scaling');
536a676d   Erdogan Furkan   #10701 & #10702 Done
168
169
170
171
	if (axisScalingField){
		var axisScaling = axisScalingField.getValue();	
	}
	if (axisScaling == 'manual') {
1a0151a5   Benjamin Renard   wip
172
173
174
175
176
177
178
179
180
      var axisRangeMinField = Ext.getCmp('visu-scatter-' + axisName + '-range-min');
      var axisRangeMin = axisRangeMinField.getValue();
      var axisRangeMaxField = Ext.getCmp('visu-scatter-' + axisName + '-range-max');
      var axisRangeMax = axisRangeMaxField.getValue();
      opt.range = {
        'min' : axisRangeMin,
        'max' : axisRangeMax
      };
    }
13374f3f   Erdogan Furkan   #10584 - Done
181

536a676d   Erdogan Furkan   #10701 & #10702 Done
182
183
184
	if (Ext.getCmp('visu-scatter-' + axisName + '-logbox')){
		opt.logscale = Ext.getCmp('visu-scatter-' + axisName + '-logbox').getValue();
	}
903e5e09   Benjamin Renard   WIP
185
    return opt;
33705dc4   Benjamin Renard   Catalog visu rework
186
187
  },

536a676d   Erdogan Furkan   #10701 & #10702 Done
188
	getAxisConfig: function(axisIndex, axisName, parametersStore, isColorbar = false) {
33705dc4   Benjamin Renard   Catalog visu rework
189
190
191
192
193
194
		var paramComboConfig = {
			xtype: 'combo',
			emptyText: 'select parameter',
			editable: false,
			store: parametersStore,
			queryMode: 'local',
b0720b91   Benjamin Renard   Finalize catalog ...
195
			displayField: 'name',
33705dc4   Benjamin Renard   Catalog visu rework
196
197
			valueField: 'id',
			axisIndex: axisIndex,
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
198
199
200
      		id: 'visu-scatter-' + axisName + '-param',
			listeners:{
				change:function(){
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
201
202
					var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
					this.visuUI.plotChart(!isNotColorBar.collapsed);
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
203
204
205
				},
				scope: this
			}
33705dc4   Benjamin Renard   Catalog visu rework
206
207
208
209
210
211
212
213
214
215
216
		};

		var comboRangeConfig = {
			xtype : 'combo',
			name:'scaling',
			valueField: 'scaling',
			queryMode:'local',
			store:['auto','manual'],
			forceSelection:true,
			value: 'auto',
			width: 80,
536a676d   Erdogan Furkan   #10701 & #10702 Done
217
      		id: 'visu-scatter-' + axisName + '-scaling',
33705dc4   Benjamin Renard   Catalog visu rework
218
219
220
221
222
223
224
225
226
227
228
229
230
231
			listeners : {
				scope : this,
				change : function(combo, newValue, oldValue) {
					var minValue = combo.next().next();
					var maxValue  = minValue.next().next();
					var disabled = newValue == "auto";
					minValue.reset();
					maxValue.reset();
					minValue.setDisabled(disabled);
					maxValue.setDisabled(disabled);
				}
			}
		};

13374f3f   Erdogan Furkan   #10584 - Done
232
233
234
235
236
237
238
239
240
241
242
		var logbox={
				xtype: 'fieldcontainer',
				fieldLabel: 'Log Scale',
				defaultType: 'checkboxfield',
				items: [
					{
						name      : 'logscale',
						inputValue: false,
						id        : 'visu-scatter-' + axisName + '-logbox',
						listeners:{
						change:function(){
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
243
244
							var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
							this.visuUI.plotChart(!isNotColorBar.collapsed);
13374f3f   Erdogan Furkan   #10584 - Done
245
246
247
248
249
250
251
						},
						scope: this
						}
					}
				],
		  };

33705dc4   Benjamin Renard   Catalog visu rework
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
		var axisRangeConfig = {
			xtype : 'fieldcontainer',
			layout: 'hbox',
			items: [
				{
					xtype:'fieldset',
					title: axisName + ' Range',
					border: false,
					layout: 'hbox',
					items: [
						comboRangeConfig,
						{
							xtype: 'splitter'
						},
						{
							xtype: 'numberfield',
							hideTrigger: true,
							width: 50,
1a0151a5   Benjamin Renard   wip
270
							disabled: true,
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
271
272
273
              				id: 'visu-scatter-' + axisName + '-range-min',
							listeners:{
								change:function(){
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
274
275
									var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
									this.visuUI.plotChart(!isNotColorBar.collapsed);
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
276
277
278
								},
								scope: this
							}
33705dc4   Benjamin Renard   Catalog visu rework
279
280
281
282
283
284
285
286
						},
						{
							xtype: 'splitter'
						},
						{
							xtype: 'numberfield',
							hideTrigger: true,
							width: 50,
1a0151a5   Benjamin Renard   wip
287
							disabled: true,
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
288
289
290
             				id: 'visu-scatter-' + axisName + '-range-max',
							listeners:{
								change:function(){
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
291
292
									var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
									this.visuUI.plotChart(!isNotColorBar.collapsed);
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
293
294
295
								},
								scope: this
							}
13374f3f   Erdogan Furkan   #10584 - Done
296
						},
33705dc4   Benjamin Renard   Catalog visu rework
297
					]
13374f3f   Erdogan Furkan   #10584 - Done
298
				},
33705dc4   Benjamin Renard   Catalog visu rework
299
300
301
302
303
			]
		};

		return {
			xtype : 'fieldset',
4c5eec8c   Erdogan Furkan   Minor fixes
304
			id:axisName + 'axis-fieldset',
536a676d   Erdogan Furkan   #10701 & #10702 Done
305
306
307
308
			collapsed:isColorbar,
			collapsible:true,
			checkboxToggle:isColorbar,
			checkboxName:axisName + ' axis-checkbox',
33705dc4   Benjamin Renard   Catalog visu rework
309
			title : axisName + ' axis',
10643315   Erdogan Furkan   #10702 - Comments...
310
			items : 
536a676d   Erdogan Furkan   #10701 & #10702 Done
311
312
313
314
315
316
317
318
319
320
				[
					paramComboConfig,
					axisRangeConfig,
					logbox,
					{
						xtype: 'textfield',
						fieldLabel: axisName + ' title',
						  id: 'visu-scatter-' + axisName + '-title',
						listeners:{
							change:function(){
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
321
322
								var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
								this.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
323
324
325
326
327
328
329
330
							},
							scope: this
						},
					}
				],
			listeners: (isColorbar) ? {
				collapse:function(){
					this.visuUI.plotChart(false);
10643315   Erdogan Furkan   #10702 - Comments...
331
					var colorPicker = Ext.getCmp('visu-scatter-color-fieldset');
f1cb9292   Erdogan Furkan   #10702 - Minor fix
332
					colorPicker.show(true)
536a676d   Erdogan Furkan   #10701 & #10702 Done
333
334
335
336
					
				},
				expand : function(combo, newValue, oldValue){
					this.visuUI.plotChart();
10643315   Erdogan Furkan   #10702 - Comments...
337
338
					var colorPicker = Ext.getCmp('visu-scatter-color-fieldset');
					colorPicker.hide(true)
536a676d   Erdogan Furkan   #10701 & #10702 Done
339
340
341
				},
				scope: this
			}: null,
33705dc4   Benjamin Renard   Catalog visu rework
342
343
344
345
346
347
		};
	},

	getPlottingOptionConfig: function() {
		var plotTypeComboConfig = {
			xtype: 'combo',
536a676d   Erdogan Furkan   #10701 & #10702 Done
348
349
			fieldLabel:'Type',
			margin:'2 2 2 2',
33705dc4   Benjamin Renard   Catalog visu rework
350
351
			emptyText: 'select plot type',
			editable: false,
10643315   Erdogan Furkan   #10702 - Comments...
352
			store: ['point', 'point+line'],
33705dc4   Benjamin Renard   Catalog visu rework
353
354
			queryMode: 'local',
			valueField: 'type',
10643315   Erdogan Furkan   #10702 - Comments...
355
			value: 'point',
13374f3f   Erdogan Furkan   #10584 - Done
356
      		id: 'visu-scatter-type',
33705dc4   Benjamin Renard   Catalog visu rework
357
358
359
360
			listeners : {
				scope : this,
				change : function(combo, newValue, oldValue) {
					//this.chartConfig.series[0].type = newValue;
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
361
					var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
4c5eec8c   Erdogan Furkan   Minor fixes
362
					this.visuUI.plotChart(!isNotColorBar.collapsed);
33705dc4   Benjamin Renard   Catalog visu rework
363
				}
57eb5d17   Erdogan Furkan   #6899 - Asked mod...
364
			},scope: this
33705dc4   Benjamin Renard   Catalog visu rework
365
		};
10643315   Erdogan Furkan   #10702 - Comments...
366
367
368
369
		var colorPicker = this.addColorsPicker('visu-scatter-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColorsNew, 'standard');
		var plotThemeComboConfig = {xtype:'fieldset',
									id:'visu-scatter-color-fieldset',
									margin:'5 0 0 0',
b0f0f1c6   Erdogan Furkan   Minor fixes for C...
370
									padding:0,
10643315   Erdogan Furkan   #10702 - Comments...
371
372
373
374
									border:false,
									items:[colorPicker],
								};
		colorPicker.add({id:'visu-scatter-color'});
536a676d   Erdogan Furkan   #10701 & #10702 Done
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395

		var comboStore = Ext.create('Ext.data.Store', {
			fields: [amdaPlotObj.PlotObjectConfig.fieldComboBox.key, amdaPlotObj.PlotObjectConfig.fieldComboBox.value],
			data: this.availableSymbolsTypes
		});
		var plotSymbolConfig = 
		{
			xtype: 'combo',
			store: comboStore,
			fieldLabel:'Symbol',
			editable:false,
			margin:'2 2 2 2',
			queryMode: 'local',
			displayField: 'value',
			valueField: 'key',
			value:'circle',
			id: 'visu-scatter-symbol',
			listeners: {
				scope : this,
				change : function(combo, newValue, oldValue) {
					//this.chartConfig.theme = newValue;
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
396
					var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
4c5eec8c   Erdogan Furkan   Minor fixes
397
					this.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
398
399
				}
			}
33705dc4   Benjamin Renard   Catalog visu rework
400
401
		};

536a676d   Erdogan Furkan   #10701 & #10702 Done
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
		var plotSizeNumber=
			{
				xtype: 'numberfield',
				layout:'hbox',
				hidden: true,
				width: 50,
				disabled: true,
				value: 5,
				id: 'visu-scatter-size'
			};
		
		var plotSizeConfig = {
					xtype: 'slider',
					fieldLabel: 'Size',
					layout:'hbox',
					margin:'2 2 2 2',
					width: 80,
					value: 5,
					increment: 1,
					minValue: 1,
					maxValue: 20,
					id: 'visu-scatter-size2',
					listeners: {
					  change: function ( slider, newValue, thumb, eOpts ) {
						var binValueField = Ext.getCmp('visu-scatter-size');
						binValueField.setValue(newValue);
					  },
					  changecomplete: function(){
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
430
						var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
4c5eec8c   Erdogan Furkan   Minor fixes
431
						this.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
432
433
434
435
436
437
					  },
					  scope: this
					}
			};


33705dc4   Benjamin Renard   Catalog visu rework
438
439
		return {
			xtype : 'fieldset',
536a676d   Erdogan Furkan   #10701 & #10702 Done
440
441
442
			collapsed:true,
			collapsible:true,
			layout:'fit',
33705dc4   Benjamin Renard   Catalog visu rework
443
444
445
			title : 'Plotting Options',
			items : [
				plotTypeComboConfig,
536a676d   Erdogan Furkan   #10701 & #10702 Done
446
447
448
449
				plotSymbolConfig,
				plotSizeConfig,
				plotSizeNumber,
				plotThemeComboConfig,
33705dc4   Benjamin Renard   Catalog visu rework
450
451
452
453
			]
		};
	},

536a676d   Erdogan Furkan   #10701 & #10702 Done
454
455
456
457
458
459
	addColorsPicker: function (name, label, availableColors, mode) {
		if (!mode) {
			mode = 'standard';
		}
		var me =this;
		return new amdaPlotComp.PlotColorPicker({name: name, label: label, mode: mode, colors: availableColors, onChange: function(name, newValue, oldValue) {
20c4ceb9   Erdogan Furkan   Fixed a bug on co...
460
			var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
d7780bc3   Erdogan Furkan   Another pb solved
461
			me.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
462
463
464
		}});
	},

33705dc4   Benjamin Renard   Catalog visu rework
465
466
467
	init : function (config)
	{
		var myConf = {
4be0c1c3   Erdogan Furkan   Last modification...
468
			autoScroll:true,
33705dc4   Benjamin Renard   Catalog visu rework
469
470
471
			items: [
				this.getAxisConfig(0,'X', config.parametersStore),
				this.getAxisConfig(0,'Y', config.parametersStore),
536a676d   Erdogan Furkan   #10701 & #10702 Done
472
				this.getAxisConfig(0,'Z', config.parametersStore,true),
33705dc4   Benjamin Renard   Catalog visu rework
473
				this.getPlottingOptionConfig()
4c5eec8c   Erdogan Furkan   Minor fixes
474
			],
33705dc4   Benjamin Renard   Catalog visu rework
475
476
477
478
479
		};

		Ext.apply (this, Ext.apply(arguments, myConf));
    }
});