Skip to content

Commit 57f786a

Browse files
committed
✨ continuous line
1 parent 70e414c commit 57f786a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pyexcel_echarts/options.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
box='Box',
1515
bar='Bar',
1616
hist='Bar',
17+
cline='Line',
1718
bar3d='Bar3D',
1819
effectscatter='EffectScatter',
1920
scatter='Scatter',
@@ -134,6 +135,21 @@ def render_sheet(self, sheet,
134135
sheet.row[legend], **keywords)
135136

136137

138+
@PluginInfo('chart', tags=['cline'])
139+
class ContinuousLine(Chart):
140+
141+
def render_sheet(self, sheet,
142+
x=0, y=1,
143+
**keywords):
144+
self.instance.add(
145+
sheet.name, sheet.column[x],
146+
sheet.column[y], **keywords)
147+
148+
def render_book(self, book, **keywords):
149+
for sheet in book:
150+
self.render_sheet(sheet, **keywords)
151+
152+
137153
@PluginInfo('chart', tags=['scatter3d'])
138154
class Scatter3DLayout(Chart):
139155

0 commit comments

Comments
 (0)