diff --git a/js/app/views/PlotComponents/PlotContextManager.js b/js/app/views/PlotComponents/PlotContextManager.js index 129d090..1e6b954 100644 --- a/js/app/views/PlotComponents/PlotContextManager.js +++ b/js/app/views/PlotComponents/PlotContextManager.js @@ -82,6 +82,12 @@ Ext.define('amdaPlotComp.PlotContextManager', { if (pixelMax == pixelMin) return NaN; + if (axisContext.logarithmic) + { + var value = axisContext.min + (pixelValue - pixelMin)/(pixelMax - pixelMin)*(axisContext.max-axisContext.min); + return Math.pow(10,value); + } + return axisContext.min + (pixelValue - pixelMin)/(pixelMax - pixelMin)*(axisContext.max-axisContext.min); } }); \ No newline at end of file -- libgit2 0.21.2