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',
a1c7bb89   Erdogan Furkan   Minor fix
112
	hovertemplate: (isColorBar) ? '(%{x},%{y},%{marker.color}) <br>%{text}<extra></extra>': null,
560766be   furkan   #6899- Last modif...
113
	text: text,
3ccb373f   furkan   #6899 - Done
114
	marker:{
10643315   Erdogan Furkan   #10702 - Comments...
115
		color: (isColorBar) ?  z : plotColor,
536a676d   Erdogan Furkan   #10701 & #10702 Done
116
117
		colorbar:(isColorBar) ? {
			len:0.7,
10643315   Erdogan Furkan   #10702 - Comments...
118
119
			title: (zAxisOpt.logscale) ? 'log'+'10'.sub()+'('+zAxisOpt.title+')' : zAxisOpt.title,
			titleside:'right',
536a676d   Erdogan Furkan   #10701 & #10702 Done
120
121
			titlefont:{size:10},
		  } : null,
10643315   Erdogan Furkan   #10702 - Comments...
122
		colorscale: (isColorBar) ?'Jet':null,
536a676d   Erdogan Furkan   #10701 & #10702 Done
123
124
125
126
		showscale:isColorBar,
		symbol: plotSymbol,
		size : plotSize,
	},
3ccb373f   furkan   #6899 - Done
127
	type: 'scatter'}];
1a0151a5   Benjamin Renard   wip
128

3ccb373f   furkan   #6899 - Done
129
130
	var layout = {
		margin: {l: 50,r: 40, b: 40,t: 40,pad: 5},
13374f3f   Erdogan Furkan   #10584 - Done
131
132
133
134
135
136
137
138
		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...
139
140
141
		hovermode: "closest",
		hoverlabel :{ font:{size:10}}	
	};
3ccb373f   furkan   #6899 - Done
142
143
	var result =  {data:data,layout:layout}
    return result;
33705dc4   Benjamin Renard   Catalog visu rework
144
145
  },

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

903e5e09   Benjamin Renard   WIP
152
153
154
155
156
    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 ...
157
        opt.paramId = paramField.get('id');
738e0997   Benjamin Renard   Draw histogram
158
				opt.title = paramField.get('name');
903e5e09   Benjamin Renard   WIP
159
160
      }
    }
33705dc4   Benjamin Renard   Catalog visu rework
161
162

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

1a0151a5   Benjamin Renard   wip
168
    var axisScalingField = Ext.getCmp('visu-scatter-'+axisName+'-scaling');
536a676d   Erdogan Furkan   #10701 & #10702 Done
169
170
171
172
	if (axisScalingField){
		var axisScaling = axisScalingField.getValue();	
	}
	if (axisScaling == 'manual') {
1a0151a5   Benjamin Renard   wip
173
174
175
176
177
178
179
180
181
      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
182

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

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

		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
218
      		id: 'visu-scatter-' + axisName + '-scaling',
33705dc4   Benjamin Renard   Catalog visu rework
219
220
221
222
223
224
225
226
227
228
229
230
231
232
			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
233
234
235
236
237
238
239
240
241
242
243
		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...
244
245
							var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
							this.visuUI.plotChart(!isNotColorBar.collapsed);
13374f3f   Erdogan Furkan   #10584 - Done
246
247
248
249
250
251
252
						},
						scope: this
						}
					}
				],
		  };

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

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

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

		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...
397
					var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
4c5eec8c   Erdogan Furkan   Minor fixes
398
					this.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
399
400
				}
			}
33705dc4   Benjamin Renard   Catalog visu rework
401
402
		};

536a676d   Erdogan Furkan   #10701 & #10702 Done
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
430
		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...
431
						var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
4c5eec8c   Erdogan Furkan   Minor fixes
432
						this.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
433
434
435
436
437
438
					  },
					  scope: this
					}
			};


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

536a676d   Erdogan Furkan   #10701 & #10702 Done
455
456
457
458
459
460
	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...
461
			var isNotColorBar = Ext.getCmp('Zaxis-fieldset');
d7780bc3   Erdogan Furkan   Another pb solved
462
			me.visuUI.plotChart(!isNotColorBar.collapsed);
536a676d   Erdogan Furkan   #10701 & #10702 Done
463
464
465
		}});
	},

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

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