Commit e800266532bfa5476b8aa25a1f1c160ae52f9db0

Authored by Erdogan Furkan
1 parent 1ce37eda

Minor fix

src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -617,7 +617,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass @@ -617,7 +617,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
617 if (!empty($paramData->{'param-drawing-object'}->{'serie-colored-param'})) 617 if (!empty($paramData->{'param-drawing-object'}->{'serie-colored-param'}))
618 $colorSerieId = $drawingEltIndex; 618 $colorSerieId = $drawingEltIndex;
619 619
620 - $xId = ($isScatter && !empty($paramData->{'param-drawing-object'}->{'serie-xaxis-param'})) ? $xIds[$paramData->{'param-drawing-object'}->{'serie-xaxis-param'}] : -1; 620 + $xId = (($isScatter || $isHisto) && !empty($paramData->{'param-drawing-object'}->{'serie-xaxis-param'})) ? $xIds[$paramData->{'param-drawing-object'}->{'serie-xaxis-param'}] : -1;
621 621
622 switch ($paramData->{'param-drawing-type'}) { 622 switch ($paramData->{'param-drawing-type'}) {
623 case 'serie': 623 case 'serie':