Skip to content

Chart.display() seems not working, and raw output of Chart.to_js_literal() is not an out-of-the-box feature. #42

@ikngoo

Description

@ikngoo

Describe the bug
My first attempt at dispay chart in jupyter notebook, but Chart.display() seems not working.
And encounter another issue when I turn to Chart.to_js_literal().

To Reproduce
Steps to reproduce the behavior:

  1. Create a python 3.10 environment with conda.

  2. Create a .ipynb file import all requirements needed (pandas, highcharts_core ...).

  3. Create a sample dataframe with 3 columns(x: int,y: int, id: str).

  4. Use Chart.from_pandas() to create my_chart variable.

  5. Screen snapshot of output of my_chart.display().
    image

  6. Chart.to_js_literal('app.js') export raw output to app.js, and import the app.js in index.html.
    image

  7. And I tried to remove "new" and specify the container fixed the issue.
    image

Expected behavior
I expected to reproduce the basic-line demo, and display chart in jupyter notebook.

Your Environment:

  • OS: Windows
  • Python Version: 3.10
  • Highcharts JavaScript Version: last

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions