(self)
return chart
Generate the chart.

        Returns:
            Instance of altair.Chart
Generate the chart.
Generate the chart .
def generate(self):
        """Generate the chart.

        Returns:
            Instance of altair.Chart
        """
        chart = self._get_chart_with_transform()
        self._add_url_href(self.encoding)

        if self.chart_title:
            chart = chart.mark_circle(filled=True, size=100).properties(
                title=self.chart_title)
        else:
            chart = chart.mark_circle(filled=True, size=100)
        field = self.encoding.get('y', {}).get('field', 'count')
        color = alt.Color(field=field, type='quantitative')
        chart.encoding = alt.FacetedEncoding.from_dict(self.encoding)
        chart.encoding.color = color
        return chart
def generate ( self ) : chart = self . _get_chart_with_transform ( ) self . _add_url_href ( self . encoding ) if self . chart_title : chart = chart . mark_circle ( filled = True , size = 100 ) . properties ( title = self . chart_title ) else : chart = chart . mark_circle ( filled = True , size = 100 ) field = self . encoding . get ( 'y' , { } ) . get ( 'field' , 'count' ) color = alt . Color ( field = field , type = 'quantitative' ) chart . encoding = alt . FacetedEncoding . from_dict ( self . encoding ) chart . encoding . color = color return chart