public function column(string $componentId) : TableComponentMappingDefiner
    {
        /** @var IColumn $column */
        /** @var IColumnComponent $component */
        list($column, $component) = $this->tableDataSource->getStructure()->getColumnAndComponent($componentId);
        $componentId = $column->getName() . '.' . $component->getName();

        return new TableComponentMappingDefiner($component, function (IColumnComponent $chartAxisComponent) use ($column, $componentId) {
            $this->chartComponentTableIdMap[$chartAxisComponent] = $componentId;
            $this->addColumnToLoad($column);
        });
    }
public function column(string $componentId) : TableComponentMappingDefiner
    {
        /** @var IColumn $column */
        /** @var IColumnComponent $component */
        list($column, $component) = $this->tableDataSource->getStructure()->getColumnAndComponent($componentId);
        $componentId = $column->getName() . '.' . $component->getName();

        return new TableComponentMappingDefiner($component, function (IColumnComponent $chartAxisComponent) use ($column, $componentId) {
            $this->chartComponentTableIdMap[$chartAxisComponent] = $componentId;
            $this->addColumnToLoad($column);
        });
    }
public function column ( string $ componentId ) : TableComponentMappingDefiner { /** @var IColumn $column */ /** @var IColumnComponent $component */ list ( $ column , $ component ) = $ this -> tableDataSource -> getStructure ( ) -> getColumnAndComponent ( $ componentId ) ; $ componentId = $ column -> getName ( ) . '.' . $ component -> getName ( ) ; return new TableComponentMappingDefiner ( $ component , function ( IColumnComponent $ chartAxisComponent ) use ( $ column , $ componentId ) { $ this -> chartComponentTableIdMap [ $ chartAxisComponent ] = $ componentId ; $ this -> addColumnToLoad ( $ column ) ; } ) ; }
Defines a table component to map to a chart component.

@param string $componentId

@return TableComponentMappingDefiner
Defines a table component to map to a chart component .