6d60be3b73b0ef4e1353747eb8be4a9d904d34ba,bokeh/charts/builder/bar_builder.py,BarBuilder,_yield_renderers,#BarBuilder#,206
Before Change
Takes reference points from data loaded at the ColumnDataSource.
quartets = list(chunk(self._attr, 4))
colors = cycle_colors(quartets, self.palette)
// quartet elements are: [data, mid, stacked, cat]
for i, quartet in enumerate(quartets):
if self.stacked:
glyph = Rect(
x="cat", y=quartet[2],
width="width", height=quartet[0],
fill_color=colors[i], fill_alpha=0.7,
line_color="white"
)
else: // Grouped
glyph = Rect(
x=quartet[3], y=quartet[1],
width="width_cat", height=quartet[0],
fill_color=colors[i], fill_alpha=0.7,
line_color="white"
)
renderer = GlyphRenderer(data_source=self._source, glyph=glyph)
self.legends.append((self._groups[i], [renderer]))
yield renderer
After Change
Takes reference points from data loaded at the ColumnDataSource.
color = self.attributes["color"]
stack = self.attributes["stack"]
for group in self._data.groupby(color, stack):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: bokeh/bokeh
Commit Name: 6d60be3b73b0ef4e1353747eb8be4a9d904d34ba
Time: 2015-08-23
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/bar_builder.py
Class Name: BarBuilder
Method Name: _yield_renderers
Project Name: bokeh/bokeh
Commit Name: ded044ebee429e8e1b8dbd7e581bfb9634be7354
Time: 2015-09-08
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/line_builder.py
Class Name: LineBuilder
Method Name: _yield_renderers
Project Name: bokeh/bokeh
Commit Name: 4ace574968a1001c80b1689239d767f9e4497d78
Time: 2015-08-14
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/scatter_builder.py
Class Name: ScatterBuilder
Method Name: _yield_renderers