(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()
        if self.chart_title:
            chart = chart.mark_bar(strokeWidth=0.3).properties(
                title=self.chart_title)
        else:
            chart = chart.mark_bar(strokeWidth=0.3)

        self._add_url_href(self.encoding)
        chart.encoding = alt.FacetedEncoding.from_dict(self.encoding)
        return chart
def generate ( self ) : chart = self . _get_chart_with_transform ( ) if self . chart_title : chart = chart . mark_bar ( strokeWidth = 0.3 ) . properties ( title = self . chart_title ) else : chart = chart . mark_bar ( strokeWidth = 0.3 ) self . _add_url_href ( self . encoding ) chart . encoding = alt . FacetedEncoding . from_dict ( self . encoding ) return chart