ac47ce4d0ea99d090aa4ccfe51133ae6e32ee344,bokeh/charts/builder/bar_builder.py,BarBuilder,_yield_renderers,#BarBuilder#,226

Before Change


            // a higher level function of bar chart is to keep track of max height of all bars
            self.max_height = max(max(renderer.data_source._data["height"]), self.max_height)

            self._legends.append((str(group.label), [renderer]))
            yield renderer

After Change


        Takes reference points from data loaded at the ColumnDataSource.
        

        stacker = Stack()
        for group in self._data.groupby(**self.attributes):

            stacker.add_renderer(BarGlyph(label=self._get_label(group["label"]),
                                 values=group.data[self.values.selection].values,
                                 agg=self.agg,
                                 width=self.bar_width,
                                 color=group["color"]))

        renderers = stacker.apply()

        // a higher level function of bar chart is to keep track of max height of all bars
        self.max_height = max([renderer.ymax for renderer in renderers])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: bokeh/bokeh
Commit Name: ac47ce4d0ea99d090aa4ccfe51133ae6e32ee344
Time: 2015-08-29
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/bar_builder.py
Class Name: BarBuilder
Method Name: _yield_renderers


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: e523e4a711c9be4ff19330cdc3584f542f852545
Time: 2019-04-20
Author: bihui_jin_git@126.com
File Name: QUANTAXIS/QAFetch/QATushare.py
Class Name:
Method Name: QA_fetch_get_stock_day


Project Name: bokeh/bokeh
Commit Name: cc870b340c638369a12c20e4820a8ef87137381b
Time: 2015-08-30
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/bar_builder.py
Class Name: BarBuilder
Method Name: _yield_renderers