protected function renderDataPoint(DataPointInterface $dataPoint)
    {
        $options = array();
        if (null !== $dataPoint->getName()) {
            $options['name'] = $dataPoint->getName();
        }
        if ($dataPoint instanceof PieDataPointInterface) {
            $options['sliced'] = $dataPoint->isSliced();
        }
        if (null !== $dataPoint->getXValue()) {
            $options['x'] = $dataPoint->getXValue();
        }

        $options['y'] = $dataPoint->getYValue();

        return $options;
    }
protected function renderDataPoint(DataPointInterface $dataPoint)
    {
        $options = array();
        if (null !== $dataPoint->getName()) {
            $options['name'] = $dataPoint->getName();
        }
        if ($dataPoint instanceof PieDataPointInterface) {
            $options['sliced'] = $dataPoint->isSliced();
        }
        if (null !== $dataPoint->getXValue()) {
            $options['x'] = $dataPoint->getXValue();
        }

        $options['y'] = $dataPoint->getYValue();

        return $options;
    }
protected function renderDataPoint ( DataPointInterface $ dataPoint ) { $ options = array ( ) ; if ( null !== $ dataPoint -> getName ( ) ) { $ options [ 'name' ] = $ dataPoint -> getName ( ) ; } if ( $ dataPoint instanceof PieDataPointInterface ) { $ options [ 'sliced' ] = $ dataPoint -> isSliced ( ) ; } if ( null !== $ dataPoint -> getXValue ( ) ) { $ options [ 'x' ] = $ dataPoint -> getXValue ( ) ; } $ options [ 'y' ] = $ dataPoint -> getYValue ( ) ; return $ options ; }
Renders a data point.

@param DataPointInterface $dataPoint Data point.

@return array Options.
Renders a data point .