Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Feb 10, 2024
1 parent afc2ab3 commit 34bedf9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions shinyecharts/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class InitOptions(object):
renderer: Literal["svg", "canvas"] = "svg"


# TODO: Move to _core
class Chart(object):
"""Chart"""

Expand All @@ -28,11 +29,22 @@ def __init__(
self.init_options = init_options
self.theme = theme
self.data = data

# TODO: Move to class attributes
self.option = dict()

# TODO: Remove
def set_pie_data(self, data: DataFrame) -> Chart:
pass

# Set option attributes
def attr(self, **kwargs) -> Chart:
pass

# TODO: Set data here
def set_data(self, data: DataFrame) -> Chart:
pass

def set_option(self, option: dict | ChartOption | BaseOption) -> Chart:
self.option = option if isinstance(option, dict) else option.to_dict()
return self
Expand Down

0 comments on commit 34bedf9

Please sign in to comment.