vijaygudla
Posts: 93
Joined: Wed Sep 04, 2013 10:26 am

custom images not exporting in image/excel

Hi,

i created image with text on clicking on the chart. But when we export as image,this image is not part of the exported image.
This image in base64 format.
steps:
1. click on the any point on series
2. click on export chart button
This is exporting only text . Not image. i used label method on chart and useHTML: true. But still not able to export image

please find below fiddler example
https://jsfiddle.net/dfxvwkut/54/

please suggest.
wojtek
Posts: 433
Joined: Tue Jul 03, 2018 12:32 pm

Re: custom images not exporting in image/excel

Hi vijaygudla,

Check this related thread:
https://forum.highcharts.com/highstock- ... c7529208c2

StackOverflow answer posted by Paweł Fus:
https://stackoverflow.com/questions/165 ... charts-hig

Kind regards.
Wojciech Chmiel
Highcharts Developer
vijaygudla
Posts: 93
Joined: Wed Sep 04, 2013 10:26 am

Re: custom images not exporting in image/excel

Thank you for quick response.

But my text is HTML content. I have customhtml content. This content contains images and text .
please see the fiddler example.
we are using useHTML: true
self.renderer.label(htmlwithimages)

please suggest
wojtek
Posts: 433
Joined: Tue Jul 03, 2018 12:32 pm

Re: custom images not exporting in image/excel

vijaygudla,

To export HTML inside the chart you have to set exporting.allowHTML equals true. Check API description and demo posted below.

Code: Select all

    exporting: {
    	allowHTML: true
    }
Demo:
https://jsfiddle.net/wchmiel/pa06gb4w/1/

Api reference:
https://api.highcharts.com/highcharts/e ... .allowHTML

Kind regards.
Wojciech Chmiel
Highcharts Developer

Return to “Highcharts Stock”