score:221

Accepted answer

try adding exporting: { enabled: false } to your chart generation.

score:0

@dgw has the right idea to remove the export buttons, but i wasn't happy with the "and i'd like to add a new one" suggestions until i realized i should just make the buttons outside the graph. unless your data is static, you don't really know if there's room to display your controls.

<div id="container" style="height: 400px; min-width: 600px"></div>
<button id="button" class="autocompare">new button</button>

score:0

other option is: you can just remove import of "node_modules/highcharts/modules/exporting.js" from the whole project if you don't need it at all.

that was a solution for me!

score:0

the best way to do this is to update the exporting.buttons.contextbutton.menuitems array to only include the menu items you want. below is an example that excludes the "print chart" and "view full screen" options.

exporting: {
    buttons: {
        contextbutton: {
            menuitems: ["downloadpng", "downloadjpeg", "downloadpdf", "downloadsvg"]
        }
    }
}

highcharts example

score:1

exporting:false,

add the above code to disable export option.

score:8

exporting: {
    buttons: {
        contextbutton: {
            enabled: false
        }
    }
}

you have to disable only the contextbutton.

score:9

the best way to replace the hamburger icon is to disable the navigation buttonoptions, then create your own menu and customize the context one by one as stated in the documentation. from here you can use any icon you want with your own dropdown menu.

this disables the hamburger icon.

navigation: {
buttonoptions: {
  enabled: false
  }
 }

this is how you customize export options for your own list.

$('#print').click(function() {
chart.print();
});
$('#pdf').click(function() {
chart.exportchart({
  type: 'application/pdf',
  filename: 'my-pdf'
 });
});
$('#png').click(function() {
chart.exportchart({
  type: 'image/png',
  filename: 'my-png'
 });
});
$('#jpeg').click(function() {
chart.exportchart({
  type: 'image/jpeg',
  filename: 'my-jpeg'
 });
});
$('#svg').click(function() {
chart.exportchart({
  type: 'image/svg+xml',
  filename: 'my-svg'
 });
});

jsfiddle

score:13

check this to create new button:

example: http://jsfiddle.net/fxhb5/3496/

exporting: {
    buttons: [
        {
            symbol: 'diamond',
            x: -62,
            symbolfill: '#b5c9df',
            hoversymbolfill: '#779abf',
            _titlekey: 'printbuttontitle',
            onclick: function() {
                alert('click!')
            }
        }
    ]
}

Related Query

More Query from same tag