(self)
return chart.transform_calculate(
            url=url + datum + '" ' + self._extra_query_url)
Returns a chart object potentially with a URL transform added to it.

        Returns:
            A LayerChart object, either with added transform or not, depending
            on whether sketch URL and field are set.
Returns a chart object potentially with a URL transform added to it.
Returns a chart object potentially with a URL transform added to it .
def _get_chart_with_transform(self):
        """Returns a chart object potentially with a URL transform added to it.

        Returns:
            A LayerChart object, either with added transform or not, depending
            on whether sketch URL and field are set.
        """
        chart = alt.Chart(self.values)
        if not self._sketch_url:
            return chart

        if not self._field:
            return chart

        datum = getattr(alt.datum, self._field)
        if self._aggregation_id:
            agg_string = 'a={0:d}&'.format(self._aggregation_id)
        else:
            agg_string = ''
        url = '{0:s}?{1:s}q={2:s}:"'.format(
            self._sketch_url, agg_string, self._field)
        return chart.transform_calculate(
            url=url + datum + '" ' + self._extra_query_url)
def _get_chart_with_transform ( self ) : chart = alt . Chart ( self . values ) if not self . _sketch_url : return chart if not self . _field : return chart datum = getattr ( alt . datum , self . _field ) if self . _aggregation_id : agg_string = 'a={0:d}&' . format ( self . _aggregation_id ) else : agg_string = '' url = '{0:s}?{1:s}q={2:s}:"' . format ( self . _sketch_url , agg_string , self . _field ) return chart . transform_calculate ( url = url + datum + '" ' + self . _extra_query_url )