(self)
return altair.Chart.from_json(vega_spec_string)
Returns an altair Vega-lite chart.
Returns an altair Vega-lite chart.
Returns an altair Vega - lite chart .
def generate_chart(self):
        """Returns an altair Vega-lite chart."""
        if not self._aggregations:
            return altair.Chart()

        data = self.lazyload_data()

        meta = data.get('meta', {})
        vega_spec = meta.get('vega_spec')

        if not vega_spec:
            return altair.Chart(pandas.DataFrame()).mark_point()

        vega_spec_string = json.dumps(vega_spec)
        return altair.Chart.from_json(vega_spec_string)
def generate_chart ( self ) : if not self . _aggregations : return altair . Chart ( ) data = self . lazyload_data ( ) meta = data . get ( 'meta' , { } ) vega_spec = meta . get ( 'vega_spec' ) if not vega_spec : return altair . Chart ( pandas . DataFrame ( ) ) . mark_point ( ) vega_spec_string = json . dumps ( vega_spec ) return altair . Chart . from_json ( vega_spec_string )