Skip to content

Commit 61e0a1d

Browse files
committed
Added svg function in highcharts that override svg function form webview and returns whole div instead only svg part. It is required in report that also axis labels are shown.
1 parent e6ea6f6 commit 61e0a1d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Orange/widgets/highcharts.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ def _on_selected_points(self, points):
325325
self._selection_callback([np.sort(selected).astype(int)
326326
for selected in points])
327327

328+
def svg(self):
329+
""" Return SVG string of the first SVG element on the page, or
330+
raise ValueError if not any. """
331+
html = self.frame.toHtml()
332+
return html[html.index('<div id="container"'):html.rindex('</div>') + 6]
333+
328334

329335
def main():
330336
""" A simple test. """

0 commit comments

Comments
 (0)