') + 6]
+
def main():
""" A simple test. """
From 4ab7ba0cd6bee6cc631e22274211289b79a68e64 Mon Sep 17 00:00:00 2001
From: PrimozGodec
Date: Tue, 20 Sep 2016 10:12:35 +0200
Subject: [PATCH 3/3] Added description for a svg function.
---
Orange/widgets/highcharts.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Orange/widgets/highcharts.py b/Orange/widgets/highcharts.py
index 679f06692f9..bb3cc75ecab 100644
--- a/Orange/widgets/highcharts.py
+++ b/Orange/widgets/highcharts.py
@@ -326,8 +326,11 @@ def _on_selected_points(self, points):
for selected in points])
def svg(self):
- """ Return SVG string of the first SVG element on the page, or
- raise ValueError if not any. """
+ """
+ Returns div that is container of a chart.
+ This method overrides svg method from WebView because
+ SVG itself does not contain chart labels (title, axis labels, ...)
+ """
html = self.frame.toHtml()
return html[html.index('') + 6]