Closed RobertHana closed 7 months ago
same problem. deleting extra ';' character in 'to_js_literal' function in class will generate correct js code.
Sorry you're running into this issue! It turns out this is an upstream issue in Highcharts Core for Python that is causing this. It'll be resolved in the Highcharts Core for Python v.1.6.0 release, which I expect to release within the next day or so. I've created an issue there referencing it (highcharts-for-python/highcharts-core#159).
Thanks for reporting this, and thanks for the detailed write-up and explanation of your workaround - it's much appreciated!
This was technically resolved in the Highcharts Core for Python v.1.6 release which went out today, however the fix is now enforced through the Highcharts Stock for Python v.1.6 release which bumps the dependency on Highcharts Core for Python.
Describe the bug chart.display(global_options=global_options) causes
Javascript Error: missing ) after argument list
outputTo Reproduce Steps to reproduce the behavior:
Expected behavior I expect it to render proper JS with 2 calls -- one to set the global options, and the other to create the chart.
Your Environment:
Additional context Bug may be at: highcharts_core/utility_functions.py:525 where it does not extract the function body correctly, cutting out too much at the end, and thus not closing off properly.
... my stupid work-around (i just added 3 dumb characters
xxx
to be lopped off by the function call):