// 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])