jeffry copps
jeffry copps

Reputation: 305

Highmaps - Creating custom buttons using Exporting

I want to create a button inside the map container of Highmap. I saw many examples which were all associated with Highcharts using Exporting. Can someone help me with an example with Highmaps(world or some particular country). More specifically, the button is not getting created when mapbubble is used.

My sample: Link

exporting: {
        buttons: {
            customButton: {
                x: -62,
                onclick: function () {
                    alert('Clicked');
                },
                symbol: 'circle'
            }
        }
    }

Upvotes: 1

Views: 741

Answers (1)

Kacper Madej
Kacper Madej

Reputation: 7886

For creating buttons you can use same code as one used in Highcharts - Highcharts: replace custom button image on hover

If you want to create buttons in context menu (exporting menu) then you could set them in chart's options like exporting.buttons.

Example: http://jsfiddle.net/6umj6veL/

EDIT: Do not forget to include exporting module ;)

<script src="https://code.highcharts.com/modules/exporting.js"></script>

Example: http://jsfiddle.net/pbpc5r9L/1/

Upvotes: 4

Related Questions