public function getPosArray($Values, $AxisID)
    {
        $Data = $this->pDataObject->getData();

        if (!is_array($Values)) {
            $Values = [$Values];
        }

        if ($Data["Axis"][$AxisID]["Identity"] == AXIS_X) {
            $Height = ($this->pChartObject->GraphAreaX2 - $this->pChartObject->GraphAreaX1)
                - $Data["Axis"][$AxisID]["Margin"] * 2
            ;
            $ScaleHeight = $Data["Axis"][$AxisID]["ScaleMax"] - $Data["Axis"][$AxisID]["ScaleMin"];
            $Step = $Height / $ScaleHeight;

            $Result = [];
            foreach ($Values as $Key => $Value) {
                if ($Value == VOID) {
                    $Result[] = VOID;
                } else {
                    $Result[] = $this->pChartObject->GraphAreaX1
                        + $Data["Axis"][$AxisID]["Margin"]
                        + ($Step * ($Value - $Data["Axis"][$AxisID]["ScaleMin"]))
                    ;
                }
            }
        } else {
            $Height = ($this->pChartObject->GraphAreaY2 - $this->pChartObject->GraphAreaY1)
                - $Data["Axis"][$AxisID]["Margin"] * 2
            ;
            $ScaleHeight = $Data["Axis"][$AxisID]["ScaleMax"] - $Data["Axis"][$AxisID]["ScaleMin"];
            $Step = $Height / $ScaleHeight;

            $Result = [];
            foreach ($Values as $Key => $Value) {
                if ($Value == VOID) {
                    $Result[] = VOID;
                } else {
                    $Result[] = $this->pChartObject->GraphAreaY2
                        - $Data["Axis"][$AxisID]["Margin"]
                        - ($Step * ($Value - $Data["Axis"][$AxisID]["ScaleMin"]))
                    ;
                }
            }
        }
        return count($Result) == 1 ? reset($Result) : $Result;
    }
public function getPosArray($Values, $AxisID)
    {
        $Data = $this->pDataObject->getData();

        if (!is_array($Values)) {
            $Values = [$Values];
        }

        if ($Data["Axis"][$AxisID]["Identity"] == AXIS_X) {
            $Height = ($this->pChartObject->GraphAreaX2 - $this->pChartObject->GraphAreaX1)
                - $Data["Axis"][$AxisID]["Margin"] * 2
            ;
            $ScaleHeight = $Data["Axis"][$AxisID]["ScaleMax"] - $Data["Axis"][$AxisID]["ScaleMin"];
            $Step = $Height / $ScaleHeight;

            $Result = [];
            foreach ($Values as $Key => $Value) {
                if ($Value == VOID) {
                    $Result[] = VOID;
                } else {
                    $Result[] = $this->pChartObject->GraphAreaX1
                        + $Data["Axis"][$AxisID]["Margin"]
                        + ($Step * ($Value - $Data["Axis"][$AxisID]["ScaleMin"]))
                    ;
                }
            }
        } else {
            $Height = ($this->pChartObject->GraphAreaY2 - $this->pChartObject->GraphAreaY1)
                - $Data["Axis"][$AxisID]["Margin"] * 2
            ;
            $ScaleHeight = $Data["Axis"][$AxisID]["ScaleMax"] - $Data["Axis"][$AxisID]["ScaleMin"];
            $Step = $Height / $ScaleHeight;

            $Result = [];
            foreach ($Values as $Key => $Value) {
                if ($Value == VOID) {
                    $Result[] = VOID;
                } else {
                    $Result[] = $this->pChartObject->GraphAreaY2
                        - $Data["Axis"][$AxisID]["Margin"]
                        - ($Step * ($Value - $Data["Axis"][$AxisID]["ScaleMin"]))
                    ;
                }
            }
        }
        return count($Result) == 1 ? reset($Result) : $Result;
    }
public function getPosArray ( $ Values , $ AxisID ) { $ Data = $ this -> pDataObject -> getData ( ) ; if ( ! is_array ( $ Values ) ) { $ Values = [ $ Values ] ; } if ( $ Data [ "Axis" ] [ $ AxisID ] [ "Identity" ] == AXIS_X ) { $ Height = ( $ this -> pChartObject -> GraphAreaX2 - $ this -> pChartObject -> GraphAreaX1 ) - $ Data [ "Axis" ] [ $ AxisID ] [ "Margin" ] * 2 ; $ ScaleHeight = $ Data [ "Axis" ] [ $ AxisID ] [ "ScaleMax" ] - $ Data [ "Axis" ] [ $ AxisID ] [ "ScaleMin" ] ; $ Step = $ Height / $ ScaleHeight ; $ Result = [ ] ; foreach ( $ Values as $ Key => $ Value ) { if ( $ Value == VOID ) { $ Result [ ] = VOID ; } else { $ Result [ ] = $ this -> pChartObject -> GraphAreaX1 + $ Data [ "Axis" ] [ $ AxisID ] [ "Margin" ] + ( $ Step * ( $ Value - $ Data [ "Axis" ] [ $ AxisID ] [ "ScaleMin" ] ) ) ; } } } else { $ Height = ( $ this -> pChartObject -> GraphAreaY2 - $ this -> pChartObject -> GraphAreaY1 ) - $ Data [ "Axis" ] [ $ AxisID ] [ "Margin" ] * 2 ; $ ScaleHeight = $ Data [ "Axis" ] [ $ AxisID ] [ "ScaleMax" ] - $ Data [ "Axis" ] [ $ AxisID ] [ "ScaleMin" ] ; $ Step = $ Height / $ ScaleHeight ; $ Result = [ ] ; foreach ( $ Values as $ Key => $ Value ) { if ( $ Value == VOID ) { $ Result [ ] = VOID ; } else { $ Result [ ] = $ this -> pChartObject -> GraphAreaY2 - $ Data [ "Axis" ] [ $ AxisID ] [ "Margin" ] - ( $ Step * ( $ Value - $ Data [ "Axis" ] [ $ AxisID ] [ "ScaleMin" ] ) ) ; } } } return count ( $ Result ) == 1 ? reset ( $ Result ) : $ Result ; }
Return the scaled plot position
@param mixed $Values
@param string $AxisID
@return mixed
Return the scaled plot position