File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -324,14 +324,14 @@ def _get_legend_line(self, component_name):
324
324
color = self .graph_styles [component_name ]["style" ]["background-color" ],
325
325
name = self .graph_styles [component_name ]["name" ],
326
326
)
327
- else :
328
- return '<div style="background-color: #ffffff; width: 1.6vw; height: 1.6vw;\
329
- display: inline-block; font-size: 0.9vw; vertical-align: -0.2em;">{shape}</div>\
330
- <div style="width: 0.3vw; height: 1.5vw; display: inline-block;"></div>\
331
- <div style="display: inline-block; font-size: 1.5vw;">{name}</div></div>' .format (
332
- shape = self .graph_styles [component_name ]["style" ]["shape" ],
333
- name = self .graph_styles [component_name ]["name" ],
334
- )
327
+
328
+ return '<div style="background-color: #ffffff; width: 1.6vw; height: 1.6vw;\
329
+ display: inline-block; font-size: 0.9vw; vertical-align: -0.2em;">{shape}</div>\
330
+ <div style="width: 0.3vw; height: 1.5vw; display: inline-block;"></div>\
331
+ <div style="display: inline-block; font-size: 1.5vw;">{name}</div></div>' .format (
332
+ shape = self .graph_styles [component_name ]["style" ]["shape" ],
333
+ name = self .graph_styles [component_name ]["name" ],
334
+ )
335
335
336
336
def _add_legend (self , path ):
337
337
"""Embed legend to html file generated by pyvis."""
You can’t perform that action at this time.
0 commit comments