Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ def single_chart(self, element, x, y, data=None):
ys += [self.kwds['yerr1']]
kdims, vdims = self._get_dimensions([x], ys)

if self.by:
if self.by and not self.datashade:
if element is Bars and not self.subplots:
if any(y in self.indexes for y in ys):
data = data.reset_index()
Expand Down Expand Up @@ -2335,7 +2335,7 @@ def _geom_plot(self, x=None, y=None, data=None, kind='polygons'):
if 'tools' in opts_ and kind in ["polygons", "paths"] and not vdims:
opts_["tools"] = [t for t in opts_["tools"] if t != "hover"]
if self.geo: params['crs'] = self.crs
if self.by:
if self.by and not self.datashade:
obj = Dataset(data, self.by+kdims, vdims).to(element, kdims, vdims, self.by, **params)
if self.subplots:
obj = obj.layout(sort=False)
Expand Down