Commit 34d92f66fb6c452d2763b8fb437555e7a53cb4ec

Authored by Benjamin Renard
1 parent 50d251fe

Add normalized density

js/app/models/PlotObjects/PlotObjectConfig.js
... ... @@ -481,6 +481,7 @@ Ext.define('amdaPlotObj.PlotObjectConfig', {
481 481  
482 482 availableHistogram2DFunctions: [
483 483 { 'key': 'density', 'value': 'Density' },
  484 + { "key": "normdensity", "value": "Normalised Density" },
484 485 { 'key': 'mean', 'value': 'Mean' },
485 486 { 'key': 'min', 'value': 'Minimum' },
486 487 { 'key': 'max', 'value': 'Maximum' },
... ...
js/app/views/PlotComponents/PlotHistogram2DSerieForm.js
... ... @@ -22,7 +22,7 @@ Ext.define('amdaPlotComp.PlotHistogram2DSerieForm', {
22 22 },
23 23  
24 24 updateOptions: function(functionType) {
25   - var isDensity = (functionType == 'density');
  25 + var isDensity = (functionType == 'density') || (functionType == 'normdensity');
26 26  
27 27 var zParamField = this.getForm().findField('histotype-param');
28 28 zParamField.setVisible(!isDensity)
... ...