Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 024c418

Browse files
committed
code format
1 parent 1e1ea55 commit 024c418

48 files changed

Lines changed: 520 additions & 1431 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎pyecharts/charts/base.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Base(ChartMixin):
2121
"""
2222

2323
def __init__(
24-
self,
25-
init_opts: Union[InitOpts, dict] = InitOpts(),
26-
render_opts: Union[RenderOpts, dict] = RenderOpts()
24+
self,
25+
init_opts: Union[InitOpts, dict] = InitOpts(),
26+
render_opts: Union[RenderOpts, dict] = RenderOpts(),
2727
):
2828
_opts = init_opts
2929
if isinstance(init_opts, InitOpts):
@@ -117,10 +117,10 @@ def _prepare_render(self):
117117
self._use_theme()
118118

119119
self._render_cache.clear()
120-
if self.render_options.get('embed_js'):
121-
self._render_cache['javascript'] = (
122-
self.load_javascript().load_javascript_contents()
123-
)
120+
if self.render_options.get("embed_js"):
121+
self._render_cache[
122+
"javascript"
123+
] = self.load_javascript().load_javascript_contents()
124124

125125

126126
def default(o):

‎pyecharts/charts/basic_charts/calendar.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class Calendar(Chart):
1414
"""
1515

1616
def __init__(
17-
self,
18-
init_opts: types.Init = opts.InitOpts(),
19-
render_opts: types.RenderInit = opts.RenderOpts()
17+
self,
18+
init_opts: types.Init = opts.InitOpts(),
19+
render_opts: types.RenderInit = opts.RenderOpts(),
2020
):
2121
super().__init__(init_opts=init_opts, render_opts=render_opts)
2222
self.options.update(calendar=opts.CalendarOpts().opts)

‎pyecharts/charts/basic_charts/geo.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
class GeoChartBase(Chart):
1212
def __init__(
13-
self,
14-
init_opts: types.Init = opts.InitOpts(),
15-
render_opts: types.RenderInit = opts.RenderOpts()
13+
self,
14+
init_opts: types.Init = opts.InitOpts(),
15+
render_opts: types.RenderInit = opts.RenderOpts(),
1616
):
1717
super().__init__(init_opts=init_opts, render_opts=render_opts)
1818
self.set_global_opts()

‎pyecharts/charts/basic_charts/heatmap.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class HeatMap(RectChart):
1414
"""
1515

1616
def __init__(
17-
self,
18-
init_opts: types.Init = opts.InitOpts(),
19-
render_opts: types.RenderInit = opts.RenderOpts()
17+
self,
18+
init_opts: types.Init = opts.InitOpts(),
19+
render_opts: types.RenderInit = opts.RenderOpts(),
2020
):
2121
super().__init__(init_opts=init_opts, render_opts=render_opts)
2222
self.set_global_opts(visualmap_opts=opts.VisualMapOpts(orient="horizontal"))

‎pyecharts/charts/basic_charts/kline.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class Kline(RectChart):
1515
"""
1616

1717
def __init__(
18-
self,
19-
init_opts: types.Init = opts.InitOpts(),
20-
render_opts: types.RenderInit = opts.RenderOpts()
18+
self,
19+
init_opts: types.Init = opts.InitOpts(),
20+
render_opts: types.RenderInit = opts.RenderOpts(),
2121
):
2222
super().__init__(init_opts=init_opts, render_opts=render_opts)
2323
self.set_global_opts(

‎pyecharts/charts/basic_charts/liquid.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class Liquid(Chart):
1212
"""
1313

1414
def __init__(
15-
self,
16-
init_opts: types.Init = opts.InitOpts(),
17-
render_opts: types.RenderInit = opts.RenderOpts()
15+
self,
16+
init_opts: types.Init = opts.InitOpts(),
17+
render_opts: types.RenderInit = opts.RenderOpts(),
1818
):
1919
super().__init__(init_opts=init_opts, render_opts=render_opts)
2020
self.js_dependencies.add("echarts-liquidfill")

‎pyecharts/charts/basic_charts/parallel.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class Parallel(Chart):
1313
"""
1414

1515
def __init__(
16-
self,
17-
init_opts: types.Init = opts.InitOpts(),
18-
render_opts: types.RenderInit = opts.RenderOpts()
16+
self,
17+
init_opts: types.Init = opts.InitOpts(),
18+
render_opts: types.RenderInit = opts.RenderOpts(),
1919
):
2020
super().__init__(init_opts=init_opts, render_opts=render_opts)
2121
self.options.update(parallel=opts.ParallelOpts().opts)

‎pyecharts/charts/basic_charts/polar.py‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class Polar(Chart):
1313
"""
1414

1515
def __init__(
16-
self,
17-
init_opts: types.Init = opts.InitOpts(),
18-
render_opts: types.RenderInit = opts.RenderOpts()
16+
self,
17+
init_opts: types.Init = opts.InitOpts(),
18+
render_opts: types.RenderInit = opts.RenderOpts(),
1919
):
2020
super().__init__(init_opts=init_opts, render_opts=render_opts)
2121
self.add_schema()
@@ -49,9 +49,7 @@ def add(
4949
itemstyle_opts: types.ItemStyle = None,
5050
):
5151
self._append_legend(series_name)
52-
self.options.update(polar={
53-
"center": center if center else ["50%", "50%"]
54-
})
52+
self.options.update(polar={"center": center if center else ["50%", "50%"]})
5553

5654
if type_ in (ChartType.SCATTER, ChartType.LINE, ChartType.BAR):
5755
self.options.get("series").append(

‎pyecharts/charts/basic_charts/radar.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def add_schema(
2626
angleaxis_opts: types.AngleAxis = None,
2727
polar_opts: types.Polar = None,
2828
):
29-
3029
self.options.update(
3130
radiusAxis=radiusaxis_opts, angleAxis=angleaxis_opts, polar=polar_opts
3231
)

‎pyecharts/charts/basic_charts/sankey.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def add(
2929
layout_iterations: types.Numeric = 32,
3030
orient: str = "horizontal",
3131
is_draggable: bool = True,
32-
focus_node_mode: str = 'none',
32+
focus_node_mode: str = "none",
3333
levels: types.SankeyLevel = None,
3434
label_opts: types.Label = opts.LabelOpts(),
3535
linestyle_opt: types.LineStyle = opts.LineStyleOpts(),

0 commit comments

Comments
 (0)