Skip to content

Commit

Permalink
Fix page color (pyecharts#1295)
Browse files Browse the repository at this point in the history
* Add: page color option
  • Loading branch information
chenjiandongx authored Aug 21, 2019
1 parent f430c0f commit 6db7f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyecharts/charts/composite_charts/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def add(self, chart: Base, time_point: str):
"title": chart.options.get("title"),
"tooltip": chart.options.get("tooltip"),
"visualMap": chart.options.get("visualMap"),
"color": chart.options.get("color"),
}
)
self.__check_components(chart)
Expand Down
1 change: 1 addition & 0 deletions test/test_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ def test_page_with_multi_axis():

for t in tl.options.get("options"):
assert "xAxis" in t
assert "color" in t

0 comments on commit 6db7f72

Please sign in to comment.