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 Articles
- Can not exporting renderer shapes added in callback function in highcharts / highstock
- How do I pass in parameters to the Highcharts pointFormatter callback function
- Formatting Highcharts labels with a callback function (Formatter)
- Highcharts rangeSelector: is there a formatter function callback for the inputData fields?
- How to apply the Renderer text() function multiple times to a Highcharts chart?
- Callback function doesn't work Highcharts PhantomJS
- Highcharts callback function / handle datalabels and stacklabels
- Move highcharts yAxis.tickPositioner callback function outside to some util function
- Set file type dynamically when click on exporting menu in highcharts using chart.exportChart function
- Highcharts (highstock.js) exporting function does not work on Embedded Visualforce pages
- Linking highcharts text renderer to javascript function
- 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
- Calling Highcharts export to jpeg but the source is https and exporting is http (security warnings issued by browser)
- Highcharts :Uncaught TypeError: $(...).highcharts is not a function
- Highcharts - Exporting Module
- Highcharts remove renderer path
- Highcharts saying undefined is not a function when trying to add a new chart
- Extend highcharts renderer symbols to have plus sign
- highcharts : set title on exporting
- Execute function after zoom highcharts
- Animate stroke-width with Highcharts renderer
- Uncaught TypeError: e.doDrilldown is not a function - Highcharts
- Uncaught TypeError: undefined is not a function - Highcharts - MVC
- Drill down function in highcharts in case of line charts
- exporting highcharts polar chart to PDF with phantomjs
- how to get chart object inside a point event function in Highcharts
- How to change axis label size when exporting in Highcharts / Highstock
- Pass Data String as parameter to a Function for HighCharts
- HighCharts TypeError: ha is not a function
- HighChart not displaying 'table' in reactjs
- hide a line chart while mouseover in highchart
- Higmaps doesn't display states of certain country
- Highstock Y-Axis labels overlap eachother
- How to create a threshold in highcharts ng
- Highcharts: wrap column chart month ranges in year
- Group data points by third variable and display the group name in legend
- Highcharts Dynamic tooltip positioning
- use highchart and highstock on the same page
- chart does not plot line(s) from google sheet data
- Three level drill down highmap
- Axis Label Alignment in highcharts
- Highcharts - From Servlet to JSP
- Llive data dynamic update on Highstock chart ( Cannot read property 'info' of undefined) error?
- Can we add fixed buttons on top of bars in highcharts bar chart
- Referencing array values within nested objects/arrays
- Highchart graph not displaying via Django
- How can I add a link to a Highcharts series name in the legend?
- Moving highchart to the left when there is a Y-axis title
- HighChart: Stacked Column Chart with dropdown