score:1
Accepted answer
You can use chart.exportChart() function to achieve that: http://jsfiddle.net/B6s7V/38/
The same solution as here.
$("#export").click(function () {
chart.exportChart(null, {
chart: {
events: {
load: function () {
this.renderer.image('http://highcharts.com/demo/gfx/sun.png', 100, 100, 30, 30).add();
}
}
}
});
});
score:1
When you export a chart, the chart SVG is regenerated from the original .Chart
call. If you want to add things after the chart has drawn, do it in the charts:events:load
callback.
chart: {
renderTo: 'container',
spacingBottom: 50,
events: {
load: function(){
this.renderer.image('http://highcharts.com/demo/gfx/sun.png', 100, 100, 30, 30).add();
}
}
},
See updated fiddle here.
Source: stackoverflow.com
Related Query
- Can not exporting renderer shapes added in callback function in highcharts / highstock
- Highcharts (highstock.js) exporting function does not work on Embedded Visualforce pages
- Does highcharts have a callback function for before full chart reload (this should not include legends disable)?
- Getting callback is not a function in JS with Highcharts
- Highcharts :Uncaught TypeError: $(...).highcharts is not a function
- Highcharts saying undefined is not a function when trying to add a new chart
- Uncaught TypeError: e.doDrilldown is not a function - Highcharts
- Uncaught TypeError: undefined is not a function - Highcharts - MVC
- HighCharts TypeError: ha is not a function
- Can I with highcharts column stacking on hover not highlighting the whole serie
- Uncaught TypeError: undefined is not a function when using highcharts
- Can we draw custom legends not based on series in highcharts
- How do I pass in parameters to the Highcharts pointFormatter callback function
- How can I get around "mixed active content" highcharts exporting error?
- Chart not exporting to XLS File - Highcharts
- High charts AddAnnotation is not a function for dynamic adding
- Highcharts manually added svg elements not following stock graph on pan
- Can I add my own property in 'this' of xAxis labels formatter function in High Charts?
- Stack labels not rendered correctly when exporting Highcharts graph
- TypeError: highcharts is not a function
- Formatting Highcharts labels with a callback function (Formatter)
- Typescript: Highcharts not accepting series unless it is individually added
- Highcharts rangeSelector: is there a formatter function callback for the inputData fields?
- Highcharts exporting functionality not working in latest release
- I am facing this error highcharts.js:formatted:1 Uncaught ReferenceError: Highcharts is not defined can any one help me with this
- Highcharts can not display ajax's return data
- Highcharts solid-gauge Error: c.color.tweenTo is not a function
- highcharts a.onContainerClick is not a function
- Highcharts tooltips formatter return function throwing Uncaught TypeError: j.call is not a function
- How to apply the Renderer text() function multiple times to a Highcharts chart?
More Query from same tag
- Using yii with dynamic data and highcharts
- JS Graphs using positive & negative values (Single line graph)
- Highchart selection without zoom
- Highchart / Easyphp / Batik
- Y-axis labels on spiderweb graphs
- Is it possible to configure the size of top level in Sunburst chart similar to the innerSize in Pie chart?
- Bind event to right-click
- Dynamic column based highcharts feeding data with jquery and php
- Angular 7 - Dynamic HighChart update
- Highchart Heatmap remove empty rows on legend toggle
- What is the highcharts-more file needed for?
- How can I label days of month?
- How to drop the decimals from Highcharts 3D columns and tooltip?
- Android Highcharts DialogFragment
- Highcharts reflow() after moving Y Axis to the opposite side
- Dual Axes Column Chart scaling issue for column chart
- Highcharts- How to style the colums to have gradient colors
- Highchart - highstock scroll out of sync with zoom
- Multiple axis does not work on Highcharts 4
- Adding different style to a series in legend in Highcharts
- Highcharts window while decreasing not working
- Highcharts null endpoints flush with chart sides
- How to convert datetime to epoch time in milliseconds javascript
- Highcharts: custom datalabel for bar chart. Format in PlotOptions not working
- Draw a exrta line at specific angle in high chart
- Format tooltip in highchart map for dynamic variables, some with commas and others with percents
- Highchart in angularJS directive
- HighCharts Bar graph: Showing Bar Value when hovering the mouse
- Split last 2 weeks of data into current and previous week
- Gradient fill for react-highcharts' line chart