Skip to content

Commit

Permalink
Merge pull request #22 from highcharts-for-python/develop
Browse files Browse the repository at this point in the history
PR for v.1.1.1
  • Loading branch information
hcpchris authored Apr 27, 2023
2 parents b70d277 + 7e958b3 commit 6c3210f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Release 1.1.1
=========================================

* **FIXED:** Problem when producing a JS literal, with the JS code inserting an unnecessary ``new``.
* **ENHANCEMENT:** Added more elegant error handling when something goes wrong displaying a chart in Jupyter.

---------------------

Release 1.1.0
=========================================

Expand Down
2 changes: 1 addition & 1 deletion highcharts_gantt/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.0'
__version__ = '1.1.1'
6 changes: 3 additions & 3 deletions highcharts_gantt/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ def to_js_literal(self,
callback_as_str = f"""{callback_as_str}"""
signature_elements += 1

signature = """new Highcharts.chart("""
signature = """Highcharts.chart("""
if self.is_gantt_chart:
signature = """new Highcharts.ganttChart("""
signature = """Highcharts.ganttChart("""
elif self.is_stock_chart:
signature = """new Highcharts.stockChart("""
signature = """Highcharts.stockChart("""
if container_as_str:
signature += container_as_str
if signature_elements > 1:
Expand Down
2 changes: 1 addition & 1 deletion tests/input_files/chart_obj/01-expected.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var someVariableName = new Highcharts.stockChart('some-div-id',
var someVariableName = Highcharts.stockChart('some-div-id',
{
accessibility: {
announceNewData: {
Expand Down

0 comments on commit 6c3210f

Please sign in to comment.