Skip to content

Get chart context from custom toolbar icon click #810

@mtinnes

Description

@mtinnes

Is your feature request related to a problem? Please describe.
Would like to reference chart data from custom toolbar icon click handler.

Describe the solution you'd like
As with the events handler, it would be nice to have chart context provided to the custom toolbar icon click handler. Something like this:

toolbar: {
                    tools: {
                        customIcons: [{
                            title: 'Download',
                            class: 'custom-icon',
                            index: 4,
                            click: function (e, chart, options) {
                                console.log('got it');
                            }
                        }]
                    }
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions