Commit 7be58eb61419c9e920d1a9ba0e849836b1596b1b

Authored by Erdogan Furkan
1 parent 28ce2479

Adding normalised density funtion to Density Map. I used this branch so I was ab…

…le to modify the new file, defaultValuesConfig.json
generic_data/defaultValuesConfig.json
@@ -246,6 +246,7 @@ @@ -246,6 +246,7 @@
246 246
247 "availableHistogram2DFunctions": [ 247 "availableHistogram2DFunctions": [
248 { "key": "density", "value": "Density" }, 248 { "key": "density", "value": "Density" },
  249 + { "key": "normdensity", "value": "Normalised Density" },
249 { "key": "mean", "value": "Mean" }, 250 { "key": "mean", "value": "Mean" },
250 { "key": "min", "value": "Minimum" }, 251 { "key": "min", "value": "Minimum" },
251 { "key": "max", "value": "Maximum" }, 252 { "key": "max", "value": "Maximum" },
js/app/views/PlotComponents/PlotHistogram2DSerieForm.js
@@ -22,7 +22,7 @@ Ext.define('amdaPlotComp.PlotHistogram2DSerieForm', { @@ -22,7 +22,7 @@ Ext.define('amdaPlotComp.PlotHistogram2DSerieForm', {
22 }, 22 },
23 23
24 updateOptions: function(functionType) { 24 updateOptions: function(functionType) {
25 - var isDensity = (functionType == 'density'); 25 + var isDensity = (functionType == 'density' || functionType == 'normdensity');
26 26
27 var zParamField = this.getForm().findField('histotype-param'); 27 var zParamField = this.getForm().findField('histotype-param');
28 zParamField.setVisible(!isDensity) 28 zParamField.setVisible(!isDensity)