score:221
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"]
}
}
}
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'
});
});
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!')
}
}
]
}
Source: stackoverflow.com
Related Query
- How to remove button from Highcharts
- How can I remove the white border from HighCharts pie chart?
- Highcharts how to remove headers from tooltip
- Highcharts - How can I remove starting and ending padding from area chart
- Highcharts - how to remove "Open in Highcharts Cloud" from the export menu
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- HighCharts : How to add or remove "chart context menu" from chart container?
- How to remove the value and number labels from Highcharts angular gauge
- Highcharts basic bar graphs. How to remove strokewith from the bars
- How to remove outer shadow when hovered from highcharts JAVASCRIPT
- How do I remove padding from both sides of Highcharts area category chart?
- How to remove the decimal .00 from the default highcharts configuration?
- How to call highcharts button from outside
- Parsing JSON for use with Highcharts using jquery .parseJSON or JSON.parse: how to remove quotes from function calls for formatters?
- how to remove extra data point from x-axis in highcharts
- How do you remove the partialFill from Highcharts xrange chart
- How to dynamically remove the whole Column from a single series HighCharts column graph?
- How to remove tick lines from secondary y axis in highcharts heatmap graph
- Proper way to remove all series data from a highcharts chart?
- How can I hide series from a HighCharts legend?
- How can I hide a series from initially being displayed in Highcharts
- How to remove "Values" and "series" from highcharts?
- How to prevent highcharts from shortening labels with ellipsis
- Highcharts - How to start x axis from an arbitrary value
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- highcharts how to catch and insert logic in click reset zoom button event
- Highcharts - How to remove connecting line between fixed tooltip and point
- How to remove weekend datetime gaps from x-axis of a financial chart?
- How do I get remove of 'data table' option from High chart export
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
More Query from same tag
- dragging cannot get to the beginning of chart highcharts
- Execute function after zoom highcharts
- HighChart Stacked Column label issue
- In Highcharts, how to set up title for each pyramid in a multi-pyramid chart
- Gridline only on 0 in column range
- HighCharts: Increase width and padding of stacked bar graph
- If sentence Highcharts
- HTML displaying values in JavaScript "data"
- How to create highlight area under curve in high chart?
- How to implement "zebra striping" in highcharts axes
- How To Load Plist Data On HighChart Using Objective C?
- Why do these two Highcharts calls produce different windrose charts
- Highcharts MVC Unable to get value of the property 'series': object is null or undefined
- Highcharts - Type Bar - single
- Highcharts Gantt - how to make the horizontal rows / lanes taller?
- Scrollbar for y-axis is not showing in highcharts?
- DotNetHighcharts - Hide specific legend label
- Text on SVG circle
- Highcharts stacked column bar with line
- Highcharts - how to remove "Open in Highcharts Cloud" from the export menu
- Display tooltip on hovering over the legend using Highcharts and jQuery-ui tooltip plugin
- Highcharts not draw with JSON format
- How do I set highcharts line graph point colors to an array of colors?
- Generating highcharts issues in dual axis column chart
- How can I get highcharter to represent a forecast object?
- Convert javascript datetime object to the format acceptable by highcharts Date.UTC(2014, 0, 2)
- Highstock Column Chart dragging issue
- Highcharts series (column) names of x axis
- Creating a Pie Chart using PHP to create json
- How to change value of highchart graph with the other value with refresh