score:1
i noticed this issue on ios devices. however there's a quite simple workaround. by default highcharts creates hidden <form>
element and submits data to the exporting server. what we can do here is specifying form's target attribute.
so, here's a drop-in fix that overrides default highcharts exporting module (just put it after exporting.js)
highcharts.post = function (url, data) {
var createelement = highcharts.createelement,
discardelement = highcharts.discardelement,
name,
form;
// create the form
form = createelement('form', {
method: 'post',
action: url,
enctype: 'multipart/form-data',
target: '_blank'
}, {
display: 'none'
}, document.body);
// add the data
for (name in data) {
createelement('input', {
type: 'hidden',
name: name,
value: data[name]
}, null, form);
}
// submit
form.submit();
// clean up
discardelement(form);
};
here you can find a working demo: http://jsfiddle.net/dwfv5/
score:1
since highcharts 3.0.8 (2014-01-09) you can set the target as an option, so you don't need the drop-in fix.
specify the target as part of the exporting.formattributes like so:
exporting: {
formattributes: {
target: '_blank'
}
}
live demo at http://jsfiddle.net/highcharts/dwfv5/4/
Source: stackoverflow.com
Related Query
- How to get the exported image without moving from the current window when using mobile devices
- When using Highcharts, how do you get the point name from a data point series?
- How to get access to the chart from HighchartsReact component to ResponsiveGridLayout component when I'm using functional react component
- How do I get my highcharts to reduce in size when the window is resized down
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- How can I get the navigator selection from a Highstock chart?
- how to get the axis value when I click on a cursor in highstock(high charts)?
- How to get month name from ISO date using moment js
- How to get the highlighted point from shared tooltip formatter, Highcharts
- How Can I Hide a Pie Chart's Slice in HighCharts Without Removing It From the Legend?
- how to display 2 same highcharts without duplicate the code
- How I can customize the file name when exporting using the plug-in CSV in Highcharts?
- How to render a vertical line when the mouse cursor is on the chart using highcharts?
- How could you supply multiple series to a line chart in R shiny using highcharter package and without hardcoding the series?
- React-highcharts: how do I stop the chart from re-animating when a certain prop changes?
- How can I set the legend symbol color for a series when using colorByPoint?
- How to get the last 10 objects only from JSON data
- How to remove bullet from tooltip when using highchart?
- Highcharts: how to get the point category clicked on when drilling down?
- How to get image of graph from highchart in web page only?
- How to set the dynamic value from a text box to the graph using Highcharts?
- How do I plot the x axis line using Highcharts when pegged at 0?
- How can I reveal my chart tooltip programatically when the tooltip combines data from multiple series? (sync charts)
- How to get the period value from SMA technical indicators in highcharts?
- How to get region/province code from IP address
- How to get data from multiple tables of MySQL DB and manuplate it using PHP to display graphs?
- get data from the server using radio buttons, highcharts, vb.net
- How can I get arrows at the end of x-axis and y-axis using highcharts.js?
- How to set brightness effects on specific columns on the stacked column/bar chart when using Highcharts?
- Highcharts- how to get focus only when the cursor enter the point?
More Query from same tag
- How to add Highcharts series automatically with a 2D-array?
- Is it wise to disable browser link option in Visual Studio?
- Get palette of some color
- How to load html page with dynamic content?
- Updating Highcharts series live data in Swift
- Highcharts skip columns when plotting
- Highcharts Scatter Plot - How to Fix Overlapping Data Labels?
- PLotLines In HighCharts Overlapping || React highCharts || YAxis Interval
- I don't want circles in my line Highchart
- Why chart dont load when i change json file
- Hover markers missing on disconnected graph
- Use image in Highcharts credits
- Highchart: add custom button to show/hide annotations?
- Highcharts: show just 1 marker from an arearange type of series
- HighCharts - How can I turn off the points?
- Highcharts: set only last chunk of line as a dotted zone
- Display data label always on first visible point
- Highcharts padding between plot and graph, how to remove?
- Align DataLabels of Solidguage in Highcharts
- HighCharts yAxis too much space around big numbers
- ruby on rails drawing failed but how come
- Why does highcharts not accept an array for second y axis?
- Is there a way to set Highchart options dynamically?
- Plotting 75000 points on a rich Scatter Chart with Tooltips
- Highcharts - pie chart with html div at center
- Highcharts - is it possible to maintain grouping in scatter chart
- Bold X-Axis Label on Point Hover in Highcharts Column Chart
- Highchart - Set Time(Hour:Minute) on X axis
- Arched square chart using high charts
- High Charts donut chart percentages adding to 100.1%