Skip to content

Commit

Permalink
Purge Highcharts from Orange distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed May 19, 2017
1 parent e7e0a70 commit c97af19
Show file tree
Hide file tree
Showing 24 changed files with 12 additions and 1,986 deletions.
13 changes: 0 additions & 13 deletions ATTRIBUTION

This file was deleted.

7 changes: 2 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ All rights reserved.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY WHATSOEVER.

If you use or redistribute this software, you are permitted to do so
under the terms of [GNU GPL v3+] license.
under the terms of GNU [GPL-3.0]+ license.

In addition, some parts of the program are distributed under different
license terms. Please see ATTRIBUTION file for details.

[GNU GPL v3+]: https://www.gnu.org/licenses/gpl-3.0.en.html
[GPL-3.0]: https://www.gnu.org/licenses/gpl-3.0.en.html
16 changes: 10 additions & 6 deletions Orange/canvas/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,23 +154,27 @@ def report_plot(self, name=None, plot=None):
"""
if not (isinstance(name, str) and plot is None):
name, plot = self._fix_args(name, plot)

from pyqtgraph import PlotWidget, PlotItem, GraphicsWidget, GraphicsView
from Orange.widgets.highcharts import Highchart
from Orange.widgets.utils.webview import WebviewWidget

self.report_name(name)
if plot is None:
plot = getdeepattr(self, self.graph_name)
if isinstance(plot, QGraphicsScene):
self.report_html += get_html_img(plot)
elif isinstance(plot, PlotItem):
if isinstance(plot, (QGraphicsScene, PlotItem)):
self.report_html += get_html_img(plot)
elif isinstance(plot, PlotWidget):
self.report_html += get_html_img(plot.plotItem)
elif isinstance(plot, GraphicsWidget):
self.report_html += get_html_img(plot.scene())
elif isinstance(plot, GraphicsView):
self.report_html += get_html_img(plot)
elif isinstance(plot, Highchart):
self.report_html += plot.svg()
elif isinstance(plot, WebviewWidget):
try:
svg = plot.svg()
except IndexError:
svg = plot.html()
self.report_html += svg

# noinspection PyBroadException
def report_table(self, name, table=None, header_rows=0, header_columns=0,
Expand Down
19 changes: 0 additions & 19 deletions Orange/widgets/_highcharts/LICENSE

This file was deleted.

2 changes: 0 additions & 2 deletions Orange/widgets/_highcharts/README.updating

This file was deleted.

12 changes: 0 additions & 12 deletions Orange/widgets/_highcharts/boost.js

This file was deleted.

58 changes: 0 additions & 58 deletions Orange/widgets/_highcharts/chart.html

This file was deleted.

18 changes: 0 additions & 18 deletions Orange/widgets/_highcharts/drilldown.js

This file was deleted.

Loading

0 comments on commit c97af19

Please sign in to comment.