Skip to content

Commit

Permalink
flake8 and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoon23 committed Apr 17, 2022
1 parent b8fdca0 commit 840cd1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion geemap/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __repr__(self):


class BarChart(BaseChartClass):
"""Create Bar Chart. All histogram/bar charts should use this object."""
"""Create Bar Chart. All histogram/bar charts can use this object."""

def __init__(self, features, default_labels, name, type="grouped", **kwargs):
super().__init__(features, default_labels, name, **kwargs)
Expand Down Expand Up @@ -105,6 +105,8 @@ def plot_chart(self):


class Feature_ByFeature(BarChart):
"""A object to define variables and get_data method.
"""
def __init__(
self, features, xProperty, yProperties, name="feature.byFeature", **kwargs
):
Expand All @@ -119,6 +121,8 @@ def get_data(self, xProperty, yProperties):


class Feature_ByProperty(BarChart):
"""A object to define variables and get_data method.
"""
def __init__(
self, features, xProperties, seriesProperty, name="feature.byProperty", **kwargs
):
Expand All @@ -144,6 +148,8 @@ def get_data(self, xProperties):


class Feature_Groups(BarChart):
"""A object to define variables and get_data method.
"""
def __init__(
self,
features,
Expand All @@ -163,6 +169,7 @@ def __init__(
self.new_column_names = self.get_column_names(seriesProperty, yProperty)
self.x_data, self.y_data = self.get_data(xProperty, self.new_column_names)

@classmethod
def get_column_names(self, seriesProperty, yProperty):
new_column_names = []

Expand Down

0 comments on commit 840cd1c

Please sign in to comment.