kyper-data / python-highcharts

A simple translation layer between Python and Javascript for Highcharts projects (highcharts, highmaps, and highstocks).
MIT License
395 stars 190 forks source link

highcharts resize in jupyter #69

Open genagibson opened 5 years ago

genagibson commented 5 years ago

I am struggling to see how to resize the Highchart in jupyter notebook so that it fits to the cell/container. Is there a way to get the size to automatically adjust to fit the screen? Thank you.

gbowden39 commented 5 years ago

The usual Highcharts sizing option seems to work if you specify the chart height and width in pixels.

    options = {
        'chart': {
                'height': '600',
                'width': '950',
        },
    }

    H.set_dict_options(options)

It does not work if you specify the chart height and width as a percentage.