Skip to content

Exporting buttons get dropped #84

@maxxpower007

Description

@maxxpower007

Hey,

Not sure if I am doing this right, but when I set the 'exporting' option they seem to get dropped in the resulting export:

Eg:

hc_options = {
    'exporting': {
        'buttons': {
            'contextButton': {
                'enabled': False
            },
            'exportButton': {
                'text': 'Download',
                'menuItems': ['downloadPNG']
            }
        }
    }
}
chart = Chart(options=hc_options)
chart.to_json()

Results in this (Notice the menuItems are missing):

{"userOptions": {"exporting": {"buttons": {"contextButton": {"enabled": false}, "exportButton": {"text": "Download"}}}}}

Am I doing it wrong, or is there a problem..?
(Also happens when I try to set the 'onclick' event..

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