Histogram.js
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Ext.define('amdaPlotComp.plotFunction.Histogram', {
extend: 'amdaPlotComp.plotFunction.BaseComponent',
title: "Histogram Arguments",
items: [
{
xtype: 'numberfield',
fieldLabel: 'X Min',
name: 'xMin',
allowDecimals: true, // This allows decimal numbers
hideTrigger: true, // Hides the spinner buttons
keyNavEnabled: false, // Disables keyboard navigation for precision
},
{
xtype: 'numberfield',
fieldLabel: 'X Max',
name: 'xMax',
allowDecimals: true, // This allows decimal numbers
hideTrigger: true, // Hides the spinner buttons
keyNavEnabled: false, // Disables keyboard navigation for precision
},
{
xtype: 'numberfield',
fieldLabel: 'Number of Bins',
name: 'numBins',
minValue: 1,
value: 100,
allowDecimals: false, // This ensures only integers are allowed
keyNavEnabled: false, // Disables keyboard navigation for precision
},
{
xtype: 'combo',
fieldLabel: 'Density Type',
name: 'densityType',
store: ['Density', 'Normalized Density'],
value: 'Density' // Set 'Density' as default
}
],
getValues: function () {
}
});