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 Articles
- How to get the exported image without moving from the current window when using mobile devices
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- Exception when converting to image from Base-64 string
- Highchart does not load data from hidden input when using .val
- Fetch data from firebase firestore and plot histogram using highcharts when cardview clicked - android
- Highcharts using Django-Chartit. Chart lines not displayed without window resize, or Inspect Element
- How to remove bullet from tooltip when using highchart?
- remove quote from array without using JSON_NUMERIC_CHECK
- When using Highcharts, how do you get the point name from a data point series?
- Why does my Highchart look different when I transfer my code from Jsfiddle to my server?
- How to get access to the chart from HighchartsReact component to ResponsiveGridLayout component when I'm using functional react component
- Highcharts not being drawn in some cases when using data from MySQL (page elements created before database query complete?) PHP / MySQL
- Using the source version instead of mimified when import lib with reactjs and npm
- Highchart line renders bigger when exported to pdf using css2pdf
- Unable to get highcharts image from highcharts export server using rails httparty
- array containing timestamps. push from array when second in current minute = second from each timestamp value in array
- How to fetch data only from hovered series when using multiple series highchart?
- Why are Bootstrap tabs displaying tab-pane divs with incorrect widths when using highcharts?
- Hiding a Highcharts series without using the legend
- Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- JavaScript error when using Highcharts
- Scraping data from Highcharts using selenium
- Using Highcharts and displaying a message over or on the chart when there is no data
- getting error#17 from highcharts while using solid gauge from backbone rails
- Loading Highcharts series from XML using jQuery
- I need Highchart watermark image when i download highchart
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- Update Chart Colors When Using Styled HighCharts Version
- Highcharts - Only Returning One Date on xAxis
- Colors are not rotating in Highcharts Bubble chart
- How do I pass a PHP variable from one file to another multiple times?
- Highcharts no drilldown on bar / column click
- How to retrieve parent category when using grouped categories in Highcharts?
- Highcharts - How to split up multiple charts in Rails 3
- Chartkick Pie chart legend customisation
- How to start and end a dynamically generetad datetime highchart's xAxis on the first and last tick
- Highcharts scatter plot: alert coordinates on click event
- Highcharts - change pie slice color on existing chart
- Issue: In case of multiLineSeries Graph if one of the series has no Data, the entire graph does not get plotted
- How to change the width of "yAxis label" in HighChart?
- On Click event on lat/long map point in highmaps
- ng2-charts live data animation
- HighCharts stacked column chart : 'plotOptions.series.stacking' are incompatible types
- Highcharts pie chart slice animation only works when an error is thrown
- How to enable noData with highcharts and angular
- Create custom Map for Highmaps using Shapefiles and QGIS
- PDF having Highcharts (multiple series) chart generated using svg2pdf.js throws error
- HighStock Print Setting To Hide Range Selector