diff --git a/js/app/views/PlotComponents/plotFunction/FunctionType.js b/js/app/views/PlotComponents/plotFunction/FunctionType.js
index a1303d3..22a137f 100644
--- a/js/app/views/PlotComponents/plotFunction/FunctionType.js
+++ b/js/app/views/PlotComponents/plotFunction/FunctionType.js
@@ -100,9 +100,10 @@ Ext.define('amdaPlotComp.plotFunction.FunctionType', {
                 var histoConfig = {};
                 if (this.panelContext && this.panelContext.plotArea.axes) {
                     Ext.Array.each(this.panelContext.plotArea.axes, function(axis) {
-                        if (axis['id'] == 'y-left') {
+                        if ((axis['id'] == 'y-left') || (axis['id'] == 'y-right')) {
                             histoConfig['xmin'] = axis['min'];
                             histoConfig['xmax'] = axis['max'];
+                            histoConfig['yAxis'] = axis['id'];
                         }
                     });
                 }
diff --git a/js/app/views/PlotComponents/plotFunction/Histogram.js b/js/app/views/PlotComponents/plotFunction/Histogram.js
index d505d73..244f89e 100644
--- a/js/app/views/PlotComponents/plotFunction/Histogram.js
+++ b/js/app/views/PlotComponents/plotFunction/Histogram.js
@@ -7,6 +7,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
     binsId: 'histo1d-xbinnumber',
     xMinId: "histo1d-xmin",
     xMaxId: 'histo1d-xmax',
+    
 
     /**
      * Initializes the component.
@@ -91,12 +92,14 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
         const xMaxField = this.query('[name=' + this.xMaxId + ']')[0];
         const xMaxValue = xMaxField.getValue();
 
+
         let out = {};
 
         out[this.functionId] = densityTypeValue;
         out[this.binsId] = numBinsValue;
         out[this.xMinId] = xMinValue;
         out[this.xMaxId] = xMaxValue;
+        out['histo1d-yaxis'] = this.yAxis;
 
         return out;
     }
--
libgit2 0.21.2