Skip to content

How to enable the "chart context menu" in nicegui highcharts to save image as png or jpg? #9

Closed Answered by falkoschindler
xiaozhanzi asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I see! Then let's add the "exporting" extra:

ui.highchart({
    'xAxis': {'categories': ['A', 'B']},
    'series': [
        {'name': 'Alpha', 'data': [0.1, 0.2]},
        {'name': 'Beta', 'data': [0.3, 0.4]},
    ],
    'navigation': {
        'buttonOptions': {'enabled': True},
    },
    'exporting': {
        'enabled': True,
        'buttons': {'enabled': True},
    },
}, extras=['exporting'])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@xiaozhanzi
Comment options

@falkoschindler
Comment options

Answer selected by falkoschindler
@xiaozhanzi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants