public function chart(string $name) : Chart\ChartDefiner
    {
        return new ChartDefiner($name, $this->tables, function (IChartDisplay $chart) {
            $this->charts[$chart->getName()] = $chart;
        });
    }
public function chart(string $name) : Chart\ChartDefiner
    {
        return new ChartDefiner($name, $this->tables, function (IChartDisplay $chart) {
            $this->charts[$chart->getName()] = $chart;
        });
    }
public function chart ( string $ name ) : Chart \ ChartDefiner { return new ChartDefiner ( $ name , $ this -> tables , function ( IChartDisplay $ chart ) { $ this -> charts [ $ chart -> getName ( ) ] = $ chart ; } ) ; }
Defines a chart data source with the supplied name.

@param string $name

@return ChartDefiner
Defines a chart data source with the supplied name .