Exemplo n.º 1
0
    def plot(self) -> Chart:
        df = FermentableAnalysis(self.fermentable).metric_histogram('color_lovibond')
        if len(df) == 0:
            raise NoDataException()

        figure = PreAggregateHistogramChart().plot(df, 'color_lovibond', 'count')
        return Chart(figure, 500, 350, title=self.get_chart_title())
Exemplo n.º 2
0
    def plot(self) -> Chart:
        df = get_style_metric_values(self.style, 'fg')
        if len(df) == 0:
            raise NoDataException()

        figure = PreAggregateHistogramChart().plot(df, 'fg', 'count')
        return Chart(figure, 500, 350, title=self.get_chart_title())
Exemplo n.º 3
0
    def plot(self) -> Chart:
        df = HopAnalysis(self.hop).metric_histogram('beta')
        if len(df) == 0:
            raise NoDataException()

        figure = PreAggregateHistogramChart().plot(df, 'beta', 'count')
        return Chart(figure, 500, 350, title=self.get_chart_title())