(self, data, title='', **kwargs)
return VegaResult(data)
Run the aggregation.

        Args:
            data: dict with the vega specification for the chart.
            title: string with the aggregation title.

        Returns:
            Instance of interface.AggregationResult with aggregation result.

        Raises:
            ValueError: data is not supplied.
Run the aggregation.
Run the aggregation .
def run(self, data, title='', **kwargs):
        """Run the aggregation.

        Args:
            data: dict with the vega specification for the chart.
            title: string with the aggregation title.

        Returns:
            Instance of interface.AggregationResult with aggregation result.

        Raises:
            ValueError: data is not supplied.
        """
        if not data:
            raise ValueError('Data is missing')

        if not isinstance(data, dict):
            raise ValueError('Supplied data needs to be a dict.')

        self.title = title
        return VegaResult(data)
def run ( self , data , title = '' , * * kwargs ) : if not data : raise ValueError ( 'Data is missing' ) if not isinstance ( data , dict ) : raise ValueError ( 'Supplied data needs to be a dict.' ) self . title = title return VegaResult ( data )