Skip to content

Commit

Permalink
Force zero on GroupedBars, GroupedColumns. wireservice#26
Browse files Browse the repository at this point in the history
  • Loading branch information
nbedi committed Jun 16, 2016
1 parent f4eab2b commit 01ddf14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leather/scales/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import six

from leather.data_types import Date, DateTime, Number, Text
from leather.shapes import Bars, Columns
from leather.shapes import Bars, Columns, GroupedBars, GroupedColumns


class Scale(object):
Expand Down Expand Up @@ -55,7 +55,7 @@ def infer(cls, layers, dimension, data_type):
data_max = None

for series, shape in layers:
if isinstance(shape, (Bars, Columns)):
if isinstance(shape, (Bars, Columns, GroupedBars, GroupedColumns)):
force_zero = True

if data_min is None:
Expand Down

0 comments on commit 01ddf14

Please sign in to comment.